Pádraig Brady wrote: > Dmitry E. Oboukhov wrote: > > Subject: Re: Bug#801222: sort doesn't sort properly > > for example You have a file (attached): > >... > > If You try to use `sort` from `coreutils`, You have unexpected result: > > spaces are being ignored in your locale. > > Either, sort each field separately: sort -k1,1 -k2,2 > Or use the C locale: LC_ALL=C sort
See also the FAQ on this topic: https://www.gnu.org/software/coreutils/faq/coreutils-faq.html#Sort-does-not-sort-in-normal-order_0021 Bob