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

* Philip Nikolayev <>
| 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.