对数组进行排序,并且大小写无关。
输入
{% assign my_array = "zebra, octopus, giraffe, Sally Snake" | split: ", " %} {{ my_array | sort_natural | join: ", " }}
输出
giraffe, octopus, Sally Snake, zebra
© Copyright 2023 深圳蓝晒科技有限公司. 粤ICP备2023054553号-1