Skip to content

sort

Sorts an array, case-sensitively; by a property when given.

array | sort: property

array

Liquid
{{ 'b,C,a' | split: ',' | sort | join: '' }}
Output
Cab

Shopify: Same as Shopify.

Since theme platform 1.0.

Was this page helpful?