natsort
natsort copied to clipboard
natural sort order string comparison: "a1" < "a12"
The comment says: > The longest run of digits wins. That aside, the greatest > value wins, but we can't know that it will until we've scanned > both numbers...
This is more of a comment than a problem. The algorithm in JavaScript is case-sensitive (which means output will be ["a", "c", "B"] instead of ["a", "B", "c"]. A solution...
First of all thanks for your work. We use it in MaterialAudiobookPlayer to compare file names. But recently a problem [came up](https://github.com/Ph1b/MaterialAudiobookPlayer/issues/324). When a String start with zeros, the ordering...
At 76b9abc: ``` % make test ccache cc -Wall -g -Werror -c -o strnatcmp.o strnatcmp.c ccache cc -Wall -g -Werror -c -o natsort.o natsort.c ccache cc -o natsort strnatcmp.o natsort.o...