Windows Explorer sort method

前端 未结 8 1232
萌比男神i
萌比男神i 2020-12-11 00:33

I\'m looking for an algorithm that sorts strings similar to the way files (and folders) are sorted in Windows Explorer. It seems that numeric values in strings are taken int

8条回答
  •  暖寄归人
    2020-12-11 01:06

    It's called "natural sort order". Jeff had a pretty extensive blog entry on it a while ago, which describes the difficulties you might overlook and has links to several implementations.

提交回复
热议问题