From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Barton Subject: Re: Sorting of Lists Beginning with a Link Does Not Work as Expected Date: Thu, 26 Nov 2009 09:30:13 +0000 Message-ID: <4B0E4AA5.2020803@manor-farm.org> References: <4B0D0F58.5070105@manor-farm.org> <4B0E2BF9.7050309@manor-farm.org> <7E2E9477-3EAD-4437-8DA1-9E919A6EB369@gmail.com> Reply-To: lists@manor-farm.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NDag7-00015c-8E for emacs-orgmode@gnu.org; Thu, 26 Nov 2009 04:30:19 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NDag5-00014H-Ev for emacs-orgmode@gnu.org; Thu, 26 Nov 2009 04:30:18 -0500 Received: from [199.232.76.173] (port=37279 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NDag5-000149-9J for emacs-orgmode@gnu.org; Thu, 26 Nov 2009 04:30:17 -0500 Received: from li40-130.members.linode.com ([72.14.178.130]:40342) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NDag4-0004iZ-Pu for emacs-orgmode@gnu.org; Thu, 26 Nov 2009 04:30:17 -0500 Received: from localhost (mail.wilkesley.org [127.0.0.1]) by li40-130.members.linode.com (Postfix) with ESMTP id 21538D027 for ; Thu, 26 Nov 2009 09:30:16 +0000 (GMT) Received: from li40-130.members.linode.com ([127.0.0.1]) by localhost (wilkesley.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zY0wSK0778iU for ; Thu, 26 Nov 2009 09:30:15 +0000 (GMT) Received: from firewall.banter.local (unknown [217.146.125.41]) by li40-130.members.linode.com (Postfix) with ESMTP id 57D83D025 for ; Thu, 26 Nov 2009 09:30:15 +0000 (GMT) Received: from localhost (localhost [127.0.0.1]) by firewall.banter.local (Postfix) with ESMTP id 062BBC61A for ; Thu, 26 Nov 2009 09:30:14 +0000 (GMT) Received: from firewall.banter.local ([127.0.0.1]) by localhost (firewall.banter.local [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Rjy5NnMPCXLa for ; Thu, 26 Nov 2009 09:30:13 +0000 (GMT) Received: from [192.168.0.55] (unknown [192.168.0.55]) by firewall.banter.local (Postfix) with ESMTPSA id DC5F9C040 for ; Thu, 26 Nov 2009 09:30:13 +0000 (GMT) In-Reply-To: <7E2E9477-3EAD-4437-8DA1-9E919A6EB369@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Cc: emacs-orgmode@gnu.org Carsten Dominik wrote: > > On Nov 26, 2009, at 8:19 AM, Ian Barton wrote: > >> Carsten Dominik wrote: >>> On Nov 25, 2009, at 12:04 PM, Ian Barton wrote: >>>> - [[./benighted_on_the_ben.html][Benighted on the Ben.]] A Winter >>>> ascent of Glover's Chimney almost leads to bed & breakfast on the >>>> summit of Ben Nevis. >>>> - [[./route_major.html][Route Major.]] We get lost on the famous >>>> route on Mont Blanc's southern side. >>>> - [[file:a_walk_in_the_berwyns.org][A Walk in the Berwyns]] Just to >>>> show I don't always get lost. >>>> - [[file:castell_helen_gogarth.org][Castell Helen Gogarth]] Classic >>>> cliff with a cafe at the top! >>>> - [[file:crowberry_left_fork.org][Crowberry Gully, Left Fork]] >>>> Buchaille Etive Mor. Much more fun than the ordinary straightforward >>>> route. >>>> - [[file:first_pinnacle_rib_tryfan.org][First Pinaccle Rib Tryfan]] >>>> How not to go climbing with young children. >>>> >>>> Again I am not sure if this is expected behaviour. If I try to sort >>>> the above list using any of the available methods, it doesn't get >>>> sorted at all. >>>> >>>> Using alpha sort I would expect the list to sort starting with the >>>> link description and then to consider the rest of the text. >>> Hi Ian, >>> the sorting algorithm is not smart enough to analyze links, so this >>> will be sorted >>> the the link URL, which it is. >> Thanks. I'll sort them manually. > > The sorting machine allow for a user-written function to compare > entries.... > Thanks. Time to dig out my regexp book. Ian.