From mboxrd@z Thu Jan 1 00:00:00 1970 From: Benjamin Andresen Subject: Re: Useful utility function: org-sort-multi Date: Sun, 30 Aug 2009 10:33:49 +0200 Message-ID: <87ab1hsnte.fsf@gmail.com> References: <4A988678.6020202@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MhfrZ-0007mV-TS for emacs-orgmode@gnu.org; Sun, 30 Aug 2009 04:34:13 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MhfrV-0007fQ-SE for emacs-orgmode@gnu.org; Sun, 30 Aug 2009 04:34:13 -0400 Received: from [199.232.76.173] (port=57899 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MhfrV-0007fG-N8 for emacs-orgmode@gnu.org; Sun, 30 Aug 2009 04:34:09 -0400 Received: from mail-ew0-f211.google.com ([209.85.219.211]:45751) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MhfrV-00043K-Do for emacs-orgmode@gnu.org; Sun, 30 Aug 2009 04:34:09 -0400 Received: by ewy7 with SMTP id 7so3116634ewy.31 for ; Sun, 30 Aug 2009 01:34:07 -0700 (PDT) In-Reply-To: (Carsten Dominik's message of "Sun, 30 Aug 2009 10:09:01 +0200") 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 To: org-mode Mailinglist Hey Carsten, Carsten Dominik writes: > On Aug 29, 2009, at 3:38 AM, Ryan C. Thompson wrote: > > Hi Ryan, > > this looks interesting, but I am not sure I understand how it works. > It looks to me that each sorting step will completely re-sort the entire > list of items, so the final sorting will win in the end. > > Or am I missing something here? if you have the following list * Test Sorting ** TODO Charlie ** WAITING Beta ** TODO Alpha ** STARTED Beta ** STARTED Charlie ** TODO Beta ** STARTED Alpha ** WAITING Charlie ** WAITING Alpha calling org-multi-sort with ?o ?a will sort it like this * Test Sorting ** TODO Alpha ** TODO Beta ** TODO Charlie ** STARTED Alpha ** STARTED Beta ** STARTED Charlie ** WAITING Alpha ** WAITING Beta ** WAITING Charlie but just ?a would completely ignore the TODO, STARTED, WAITING order. Thanks Ryan, pretty useful. > - Carsten br, benny