From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tim Landscheidt Newsgroups: gmane.emacs.help Subject: Re: Sorting on compound keys? Date: Fri, 10 Jun 2011 00:26:46 +0000 Organization: Message-ID: References: <4DDC9A94.3080903@easy-emacs.de> <4DDDF2FA.2050201@easy-emacs.de> <4DE2A9F7.4040605@easy-emacs.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1307665731 13680 80.91.229.12 (10 Jun 2011 00:28:51 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 10 Jun 2011 00:28:51 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jun 10 02:28:47 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QUpah-0000kb-D5 for geh-help-gnu-emacs@m.gmane.org; Fri, 10 Jun 2011 02:28:47 +0200 Original-Received: from localhost ([::1]:52812 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QUpag-0008TL-Ik for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Jun 2011 20:28:46 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:42933) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QUpZ1-0008Sv-PC for help-gnu-emacs@gnu.org; Thu, 09 Jun 2011 20:27:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QUpYz-0001oU-Tc for help-gnu-emacs@gnu.org; Thu, 09 Jun 2011 20:27:03 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:36944) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QUpYz-0001oO-Ck for help-gnu-emacs@gnu.org; Thu, 09 Jun 2011 20:27:01 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QUpYy-0000Dz-4i for help-gnu-emacs@gnu.org; Fri, 10 Jun 2011 02:27:00 +0200 Original-Received: from d221004.adsl.hansenet.de ([80.171.221.4]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 10 Jun 2011 02:27:00 +0200 Original-Received: from tim by d221004.adsl.hansenet.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 10 Jun 2011 02:27:00 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: help-gnu-emacs@gnu.org Original-Lines: 15 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: d221004.adsl.hansenet.de Mail-Copies-To: never User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:GujHlGPdCVgaBrupWyGcJ6eloLY= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 80.91.229.12 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:81321 Archived-At: Andreas Röhler wrote: > you are right. It must not be done inside sort-subr, but on the top of it. > BTW as sort-subr takes whitespace as field-delimiter, there > is no way to get +A considered as two fields. Beside this > limitation, code below should provide multiple-fields > sorting. > [...] sort-subr allows arbitrary field definitions (as long as they are literal, continuous parts of the buffer), but Mark's article reminded me that not only the effect your sort-multiple-fields has can be achieved with multiple calls to sort-fields as well, but ...