From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Mary Dalrymple" Newsgroups: gmane.emacs.bugs Subject: list sorting problem Date: Thu, 11 Apr 2002 15:38:40 PDT Organization: Xerox Palo Alto Research Center Sender: bug-gnu-emacs-admin@gnu.org Message-ID: NNTP-Posting-Host: localhost.gmane.org X-Trace: main.gmane.org 1018564932 25069 127.0.0.1 (11 Apr 2002 22:42:12 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 11 Apr 2002 22:42:12 +0000 (UTC) Return-path: Original-Received: from fencepost.gnu.org ([199.232.76.164]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 16vnGd-0006WE-00 for ; Fri, 12 Apr 2002 00:42:11 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16vnGb-0004vj-00; Thu, 11 Apr 2002 18:42:09 -0400 Original-Received: from mailbox4.ucsd.edu ([132.239.1.56]) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16vnE5-0004p0-00 for ; Thu, 11 Apr 2002 18:39:34 -0400 Original-Received: from alpha.xerox.com (alpha.Xerox.COM [13.1.64.93]) by mailbox4.ucsd.edu (8.12.1/8.12.1) with SMTP id g3BMdSid004334 for ; Thu, 11 Apr 2002 15:39:28 -0700 (PDT) Original-Received: from news.parc.xerox.com ([13.1.103.31]) by alpha.xerox.com with SMTP id <130968(1)>; Thu, 11 Apr 2002 15:39:09 PDT Original-Received: by news.parc.xerox.com id <143658>; Thu, 11 Apr 2002 15:39:00 PDT Original-To: gnu-emacs-bug@moderators.isc.org Original-Path: not-for-mail Original-Newsgroups: gnu.emacs.bug Original-Lines: 28 Original-NNTP-Posting-Host: wogglebug.parc.xerox.com Original-X-Trace: news.parc.xerox.com 1018564729 20540 13.1.100.35 (11 Apr 2002 22:38:49 GMT) Original-X-Complaints-To: usenet@news.parc.xerox.com Original-NNTP-Posting-Date: Thu, 11 Apr 2002 22:38:49 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.3018.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.3018.1300 Errors-To: bug-gnu-emacs-admin@gnu.org X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.0.9 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.bugs:588 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:588 Can someone help me with the sorting function? I'm getting the following behavior. (setq before '(("FEATa" "NP4" "N" . "another comment about np") ("FEATURE" "NP3" "N" . "another comment about np"))) display before: before's value is (("FEATa" "NP4" "N" . "another comment about np") ("FEATURE" "NP3" "N" . "another comment about np")) sort before: (sort before (lambda (a b) (string< (car a) (car b)))) display before: before's value is (("FEATa" "NP4" "N" . "another comment about np")) One of the list elements disappears. This happens in Emacs 20.7.1. Can someone tell me what is going on? Thanks -- - Mary Dalrymple