From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernt Hansen Subject: Re: Sorting Agenda By Priority Date: Fri, 07 Oct 2011 07:26:56 -0400 Message-ID: <877h4hf3en.fsf@norang.ca> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:38680) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RC8a6-0005yk-HF for emacs-orgmode@gnu.org; Fri, 07 Oct 2011 07:27:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RC8a4-0007rU-T8 for emacs-orgmode@gnu.org; Fri, 07 Oct 2011 07:27:10 -0400 Received: from mho-03-ewr.mailhop.org ([204.13.248.66]:63474 helo=mho-01-ewr.mailhop.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RC8a4-0007ps-R6 for emacs-orgmode@gnu.org; Fri, 07 Oct 2011 07:27:08 -0400 In-Reply-To: (Richard Parsons's message of "Fri, 7 Oct 2011 12:07:45 +0100") 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: Richard Parsons Cc: emacs-orgmode@gnu.org Richard Parsons writes: > Hi all > > I want to sort the agenda file so that the tasks marked with > priorities A, B and C are all at the top, with tasks marked with no > priority underneath. > > I've tried reading the manual on this > (http://orgmode.org/manual/Sorting-of-agenda-items.html#Sorting-of-agenda-items), > but don't understand it. I'm guessing that I have to change the > variable org-agenda-sorting-strategy somehow, but I'm not sure what > to. > > Thanks for helping a new user! Hi Richard, Welcome to the org-mode community! What you describe should be the default behaviour. But items with no priority default to B so you need to drop the default priority below the items you normally set a priority for (ie D if A, B, and C are the only priorities you use). See org-default-priority, org-lowest-priority ,----[ example org file ] | * TODO [#C] Priority C task | * TODO [#B] Priority B task | * TODO [#A] High priority task | * TODO Some other task | | (setq org-default-priority ?D) | (setq org-lowest-priority ?F) | `---- Result from M-x org-agenda < t ,---- | -UUU:**--F1 foo.org All L8 (Org)------------------------------------------------------------ | Global list of TODO items of type: ALL | Available with `N r': (0)ALL (1)TODO (2)DONE | foo: TODO [#A] High priority task | foo: TODO [#B] Priority B task | foo: TODO [#C] Priority C task | foo: TODO Some other task `---- HTH, Bernt