Re: not wanting to delete somebody's home directory
On Sat, 6 Jul 2019, at 16:37, Thomas Schmitt wrote:
> The classic method to make both sorting criteria match is to prepend
> '0' characters to the shorter numbers so that all number texts have the
> same length. Then lexical ordering yields
>
> 01 02 03 11 12 ... 19 21
If you don't know beforehand whether you're aiming for two-digit or
three- or four-digit numbers an alternative is to number your files from
eg 10000 so they get names
10001 10002 10003 .. 10021
--
Jeremy Nicoll - my opinions are my own.
Reply to: