I'm currently working on trying to sort a list of string file paths in the same manor as Windows Explorer does. I've been looking at several natural/human sorting algorithms that have been posted (especially ones in the natsort package) but all of them have the same problem.
Given a directory containing files "0.jpg", "00.jpg" and "000.jpg", Windows will sort them in order of decreasing precision, that is: 000.jpg, 00.jpg. 0.jpg.
All of the algorithms I've tried will sort them in the opposite order. I'm not sure how to get the desired behavior. Any advice would be appreciated.