in reply to Re^2: Sorting files by 3 numbers in the name
in thread Sorting files by 3 numbers in the name
We are comparing fixed length strings of digits. The result is the same whether we compare them lexically or numerically. I chose the lexical sort because the strings do not seem to have any numerical significance.
Thanks for supplying the link to the module documentation.
UPDATE: Oops! My comment about no numerical significance is wrong. My comment on the subject in level 6 below applies here as well (as long as all fields are of fixed length). I still prefer the lexical sort, but it is harder to justify.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Sorting files by 3 numbers in the name
by tobyink (Canon) on May 27, 2017 at 08:30 UTC | |
|
Re^4: Sorting files by 3 numbers in the name
by LanX (Saint) on May 27, 2017 at 08:03 UTC | |
by BillKSmith (Monsignor) on May 28, 2017 at 15:15 UTC | |
by LanX (Saint) on May 28, 2017 at 18:56 UTC |