Subject: bug#18051: 24.3.92; ls-lisp: Sorting; make ls-lisp-string-lessp a normal function?

From: Michael Albinus <[email-masked]>
Date: Wed, 27 Aug 2014 10:49:05 +0200

Stefan Monnier <[email-masked]> writes:

>>> An optional argument to string-lessp could be inconvenient. IMHO, the
>>> most important use-case of string-lessp is being a PREDICATE of
>>> sort. This does not support optional arguments.
>
> Of course it does:
>
>     (sort foo (lambda (x y) (string-lessp x y 'optional-arg)))

Yes, but this would also expect optional-arg to be a variable which can
be set by the user. That's similar to what I have proposed, I believe.

> -- Stefan

Best regards, Michael.