Skip to content

sort_natural

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

array | sort_natural: property

array

Liquid
{{ 'b,C,a' | split: ',' | sort_natural | join: '' }}
Output
abC

Shopify: Same as Shopify.

Since theme platform 1.0.

Was this page helpful?