From ... From: Erik Naggum Subject: Re: question on sort Date: 2000/02/28 Message-ID: <3160705423828335@naggum.no>#1/1 X-Deja-AN: 590745570 References: <889e1n$qjp$1@nnrp1.deja.com> <38A8D19D.C3B5CA15@fisec.com> mail-copies-to: never Content-Type: text/plain; charset=us-ascii X-Complaints-To: newsmaster@eunet.no X-Trace: oslo-nntp.eunet.no 951722633 29512 195.0.192.66 (28 Feb 2000 07:23:54 GMT) Organization: Naggum Software; +47 8800 8879 or +1 510 435 8604; fax: +47 2210 9077; http://www.naggum.no User-Agent: Gnus/5.0803 (Gnus v5.8.3) Emacs/20.5 Mime-Version: 1.0 NNTP-Posting-Date: 28 Feb 2000 07:23:54 GMT Newsgroups: comp.lang.lisp * 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 :key #'first) will use first to extract the value from each element of the sequence before comparing. #:Erik