Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/bfabio/liquid-nested-sort
- Owner: bfabio
- License: bsd-3-clause
- Created: 2020-09-03T19:23:37.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-03-08T14:54:56.000Z (10 months ago)
- Last Synced: 2024-10-12T17:44:16.682Z (3 months ago)
- Topics: jekyll, liquid, liquid-templating-engine, plugin
- Language: Ruby
- Homepage:
- Size: 15.6 KB
- Stars: 5
- Watchers: 4
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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).