Sort results non-lexicographically?

后端 未结 5 1632
轮回少年
轮回少年 2021-02-19 21:29

I\'m trying to display some results in a human-readable way. For the purposes of this question, some of them are numbers, some are letters, some are a combination of the two.

5条回答
  •  梦毁少年i
    2021-02-19 22:13

    I have found the code in the following link about natural sorting order very useful in the past:

    http://www.codinghorror.com/blog/2007/12/sorting-for-humans-natural-sort-order.html

提交回复
热议问题