Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Not-quite-alphabetic sorting: bug in Zsh or in Ubuntu?



On Sat, Aug 28, 2021 at 1:33 AM Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
>
> I believe this has been discussed before, it has to do with how each
> platform defines locale-specific collation order.  In the completion
> example I believe this has to do with collation of spaces, because the
> descriptions are included in the strings passed to strcoll() for
> sorting.
>
> Try
>
> LANG=en_US.UTF-8 sort <<\EOF
> less     -- opposite of more
> lessecho -- expand metacharacters
> lessfile -- "input preprocessor" for less.
> lesskey  -- specify key bindings for less
> lesspipe -- "input preprocessor" for less.
> EOF
>
> and you'll get the same result.

Thanks for the explanation! :)




Messages sorted by: Reverse Date, Date, Thread, Author