From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Bug: Agenda: Sorting TODOs (with tags) by effort does not work [8.3.6 (8.3.6-7-g4d7d52-elpaplus @ /home/luke/.emacs.d/elpa/org-plus-contrib-20161010/)] Date: Sun, 16 Oct 2016 21:32:46 +0200 Message-ID: <87shrwozs1.fsf@nicolasgoaziou.fr> References: <731855708.9597170.1476354491314.ref@mail.yahoo.com> <731855708.9597170.1476354491314@mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48749) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bvrAx-0002hb-MG for emacs-orgmode@gnu.org; Sun, 16 Oct 2016 15:32:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bvrAu-0000gb-IR for emacs-orgmode@gnu.org; Sun, 16 Oct 2016 15:32:51 -0400 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:55698) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1bvrAu-0000gD-CL for emacs-orgmode@gnu.org; Sun, 16 Oct 2016 15:32:48 -0400 In-Reply-To: <731855708.9597170.1476354491314@mail.yahoo.com> (Luke's message of "Thu, 13 Oct 2016 10:28:11 +0000 (UTC)") 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" To: Luke Cc: "emacs-orgmode@gnu.org" Hello, Luke writes: > I have the following custom agenda command set up: > > =================================================== > (setq org-agenda-custom-commands > '(("x" "TODOs sorted by effort" todo "TODO" > ((org-agenda-sorting-strategy > '(effort-down)))))) > =================================================== > > I would expect this to show me all my current TODOs, sorted by the > EFFORT property (in descending order). > > I also have the following org-mode file: > > =================================================== > * TASKS > ** TODO Task 1 > :PROPERTIES: > :Effort: 0:02 > :END: > ** TODO Task 2 > :PROPERTIES: > :Effort: 0:10 > :END: > ** TODO Task 3 > :PROPERTIES: > :Effort: 0:30 > :END: > ** TODO Task 4 > :PRyOPERTIES: > :Effort: 0:05 > :END: > =================================================== > > When I execute the agenda command (M-x org-agenda RET x), then I get the > following result (as expected): > > =================================================== > Global list of TODO items of type: TODO > Available with `N r': (0)[ALL] (1)TODO (2)DONE > gtd: TODO Task 3 > gtd: TODO Task 2 > gtd: TODO Task 4 > gtd: TODO Task 1 > =================================================== > > *However*, then I add some tags to the TODO items, such as the > following: > > =================================================== > * TASKS > ** TODO Task 1 > :PROPERTIES: > :Effort: 0:02 > :END: > ** TODO Task 2 :MY_TAG: > :PROPERTIES: > :Effort: 0:10 > :END: > ** TODO Task 3 > :PROPERTIES: > :Effort: 0:30 > :END: > ** TODO Task 4 :@ONLINE: > :PROPERTIES: > :Effort: 0:05 > :END: > =================================================== > > Now when I execute the same agenda command I get the following: > > =================================================== > Global list of TODO items of type: TODO > Available with `N r': (0)[ALL] (1)TODO (2)DONE > gtd: TODO Task 2 :MY_TAG: > gtd: TODO Task 4 :@ONLINE: > gtd: TODO Task 3 > gtd: TODO Task 1 > =================================================== > > > I wouldn't expect the order of items in the agenda to change. However, > even though I haven't specified any tag-based sorting strategy, it seemsas if the tags are still having some effect on the way that the agenda > is sorted. Fixed. Thank you. Regards, -- Nicolas Goaziou