From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Abrahamsen Subject: Re: [PATCH] sort TODO entries more usefully Date: Sun, 25 May 2014 19:51:55 +0800 Message-ID: <878upqvzxg.fsf@ericabrahamsen.net> References: <8738fyctic.fsf@ericabrahamsen.net> <87mwe65pxy.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59345) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WoWuy-0006mg-Rj for emacs-orgmode@gnu.org; Sun, 25 May 2014 07:48:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WoWut-0005PC-I8 for emacs-orgmode@gnu.org; Sun, 25 May 2014 07:48:44 -0400 Received: from plane.gmane.org ([80.91.229.3]:43186) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WoWut-0005P8-C5 for emacs-orgmode@gnu.org; Sun, 25 May 2014 07:48:39 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WoWur-0005B0-RT for emacs-orgmode@gnu.org; Sun, 25 May 2014 13:48:37 +0200 Received: from 111.197.153.243 ([111.197.153.243]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 25 May 2014 13:48:37 +0200 Received: from eric by 111.197.153.243 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 25 May 2014 13:48:37 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Bastien writes: > Hi Eric, > > Eric Abrahamsen writes: > >> For some reason I've been sorting lots of TODOs recently, and found the >> default behavior of org-sort-entries a little odd. It sorts according to >> the order found in org-todo-keywords-1, which apparently just comes from >> the order the keywords were scanned during setup. I don't think that's >> all that useful, so the attached patch sorts first by >> org-not-done-keywords vs org-done-keywords, then alphabetically. >> Headings with no keywords sort "big". > > I don't think the alphabetical order is very useful here, and putting > headlines without TODO keywords first when sorting by TODO order is > counter-intuitive at least. > > Let me suggest the attached patch instead: it puts TODO entries, then > entries without a TODO keyword, then DONE entries. > > Would it be an improvement? Sure! The actual ordering of stuff was an arbitrary choice on my part -- the only thing I cared about was getting done and not-done separated. This looks like a tidier solution, to boot... E