From mboxrd@z Thu Jan 1 00:00:00 1970 From: Richard Parsons Subject: Re: Sorting Agenda By Priority Date: Fri, 7 Oct 2011 12:34:04 +0100 Message-ID: References: <877h4hf3en.fsf@norang.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:34219) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RC8gp-0008AQ-67 for emacs-orgmode@gnu.org; Fri, 07 Oct 2011 07:34:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RC8gn-0001Xu-Lc for emacs-orgmode@gnu.org; Fri, 07 Oct 2011 07:34:07 -0400 Received: from mail-ww0-f41.google.com ([74.125.82.41]:65497) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RC8gn-0001Xc-Co for emacs-orgmode@gnu.org; Fri, 07 Oct 2011 07:34:05 -0400 Received: by wwf10 with SMTP id 10so825836wwf.0 for ; Fri, 07 Oct 2011 04:34:04 -0700 (PDT) In-Reply-To: <877h4hf3en.fsf@norang.ca> 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: Bernt Hansen Cc: emacs-orgmode@gnu.org On Fri, Oct 7, 2011 at 12:26 PM, Bernt Hansen wrote: > 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-agend= a-items), >> but don't understand it. =A0I'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! > Welcome to the org-mode community! Thank you very much. It's a great community and I continue to be very impressed. > What you describe should be the default behaviour. =A0But 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). Ah, so I was barking up the wrong tree. > 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) That worked perfectly. Thanks! Richard