Re: how to perform a multi-column sort
- From: jimka <jimka@xxxxxxxxx>
- Date: Fri, 29 Apr 2011 02:42:09 -0700 (PDT)
Here is the function I came up with. It is SKILL, not CL, but you
should be able to understand for the most part.
(defun genMultiCmpFunction (key lessp @rest others "UUUg")
(lambda (a b)
(labels ((again (key lessp @rest others)
(cond
((lessp (key a) (key b)))
((lessp (key b) (key a))
nil)
(others
(apply again others))
(t
nil))))
(apply again key lessp others))))
.
- References:
- how to perform a multi-column sort
- From: jimka
- how to perform a multi-column sort
- Prev by Date: Re: The pervasiveness of DEFVAR and the Lisp curse
- Next by Date: Re: The pervasiveness of DEFVAR and the Lisp curse
- Previous by thread: Re: how to perform a multi-column sort
- Next by thread: Re: how to perform a multi-column sort
- Index(es):