Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/bfabio/liquid-nested-sort

sort and sort_natural filters with nested fields support for Liquid
https://github.com/bfabio/liquid-nested-sort

jekyll liquid liquid-templating-engine plugin

Last synced: 2 months ago
JSON representation

sort and sort_natural filters with nested fields support for Liquid

Awesome Lists containing this project

README

        

# liquid-nested-sort

[![Gem Version](https://img.shields.io/gem/v/liquid-nested-sort.svg)](https://rubygems.org/gems/liquid-nested-sort)

`nested_sort` and `nested_sort_natural`, sort and sort_natural-like filters
with nested fields support for [Liquid](https://shopify.github.io/liquid/).

## Installation

In the Gemfile

```ruby
gem 'liquid-nested-sort'
```

## Usage

```liquid
{{ places | nested_sort "address.street" }}
```

```liquid
{{ places | nested_sort_natural "address.street" }}
```

## Thanks

This is mostly based on @untra's work (https://github.com/untra).