in reply to Re: Sorting Files with Numbers
in thread Sorting Files with Numbers
Change the order of the data in your example, since they were sorted to begin with.
—John[F:\]perl -e "print qq{[$_]\n} for ( sort { print 0+$a, $b, $/; $a <=> + $b } qw(file2 file20z file22s file1q file10z file12f) )" 00 00 00 00 00 [file2] [file20z] [file22s] [file1q] [file10z] [file12f]
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Sorting Files with Numbers
by Wonko the sane (Curate) on Dec 30, 2002 at 17:19 UTC | |
by John M. Dlugosz (Monsignor) on Dec 30, 2002 at 17:22 UTC |