Re: sort

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Tom Ball wrote:

Hmmm, if they changed the default then they should have added an option

for a "non-dictionary order". As it now stands, valid functionality was
removed. Oh well, I guess I'm moving to the land of "C", too.



Too long ago. I think we're back to around '88 when this was done. To be honest, the question could be asked why not specify the collation order in general? So you sort -c C or sort -c NL (that's exciting since "ij" collates as "y"). Then if you do it for sort, why not ls? If sort and ls, why not the shell? If sort, ls, the shell, why not the qsort() routine? Why are you providing all these extra parameters when all you actually need to do is drill down to strcmp() and the best way to do that is to set and environment variable. Bingo. LC_COLLATE. And this gives you control over everything that sorts and compares.


jch




[Index of Archives]     [Fedora Users]     [Centos Users]     [Kernel Development]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat Phoebe Beta]     [Yosemite Forum]     [Fedora Discussion]     [Gimp]     [Stuff]     [Yosemite News]

  Powered by Linux