Skip to content

sort

Sorts an array (case-sensitive); pass a property to sort objects. (standard Liquid filter.)

Example

{{ products | sort: "price" | map: "title" | first }}

Output:

(cheapest product title)