3 ms·
People sorting their files in alphabetical order but who want numerical values in their files to be sorted digit by digit instead of as numbers is the rare case
by Spivak 1y ago
People sorting their files in alphabetical order but who want numerical values in their files to be sorted digit by digit instead of as numbers is the rare case.
I might go further in my ideal sorting algo which would be normalize capitalization and ignore all non-alphanumeric characters and treat them all as separators.
- scbrg 1y ago> ignore all alphanumeric characters There's not much left to sort by then, is there?
- Spivak 1y agoGood catch! Fixed.
- bmn__ 1y agoWhat you vaguely outline has already been standardised in UTS #10. The algorithm is both based on prevailing user expectations and also has shaped them since the wide-spread adoption of implementations.