3 ms·
With ASCII lexicographic ordering, photo01 would come before photo1.
by xigoi 1y ago
With ASCII lexicographic ordering, photo01 would come before photo1.
- AdieuToLogic 1y ago> With ASCII lexicographic ordering, photo01 would come before photo1. Good catch. I did not closely inspect the ordering initially presented, which was: photo1 photo01 photo001 photo0001 photo2 This does not represent a valid sort order based solely on file names produced by `ls`, which would be: photo0001 photo001 photo01 photo1 photo2