liquid-nested-sort

liquid-nested-sort

sort and sort_natural filters with nested fields support for Liquid

liquid-nested-sort

nested_sort and nested_sort_natural, sort and sort_natural-like filters with nested fields support for Liquid.

Installation

In the Gemfile

gem 'liquid-nested-sort'

Usage

{{ places | nested_sort "address.street" }}
{{ places | nested_sort_natural "address.street" }}

Thanks

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