Subject: Re: question on sort
From: Erik Naggum <erik@naggum.no>
Date: 2000/02/28
Newsgroups: comp.lang.lisp
Message-ID: <3160705423828335@naggum.no>

* Philip Nikolayev <nikolay@is02.fas.harvard.edu>
| Is there a way to sort (with sort) a list of pairs of numbers by the
| value of the first element of each pair?

  yes.  (sort <sequence> <predicate> :key #'first) will use first to
  extract the value from each element of the sequence before comparing.

#:Erik