sort_natural

对数组进行排序,并且大小写无关。

输入


{% assign my_array = "zebra, octopus, giraffe, Sally Snake" | split: ", " %}

{{ my_array | sort_natural | join: ", " }}

输出

giraffe, octopus, Sally Snake, zebra