emacs-devel
[Top][All Lists]
Advanced

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

Re: Human-readable file sorting


From: Eli Zaretskii
Subject: Re: Human-readable file sorting
Date: Sat, 20 Feb 2016 10:53:24 +0200

> From: Lars Ingebrigtsen <address@hidden>
> Date: Sat, 20 Feb 2016 13:26:51 +1100
> 
> The practical way to implement this is to provide a `file-string-lessp'
> function that can be configured to sort the way the user prefers,
> defaulting to human readable sorting, and then we adjust
> `directory-files' and other file-ey commands to call that instead of
> `string-lessp'.

Please don't call that function `file-string-lessp', or anything that
has "file" in it.  This sorting order has nothing to do with files.
Names I can suggest include "logical", "intuitive", and "numerical".

Btw, ls-lisp by default doesn't use string-lessp, it uses
string-collate-lessp.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]