Re: [O] Agenda TODO sorting by date

2012-03-03 Thread James Harkins
At Sat, 03 Mar 2012 23:31:47 -0500, Bernt Hansen wrote: > >> (defun bh/agenda-sort-by-heading-date (a b) > >> "Sorting strategy for agenda items. > >> Late deadlines first, then scheduled, then non-late deadlines" > > Oops... this description is all wrong - since I gutted my existing > sorting f

Re: [O] Agenda TODO sorting by date

2012-03-03 Thread Bernt Hansen
James Harkins writes: > At Sat, 03 Mar 2012 14:03:05 -0500, > Bernt Hansen wrote: >> I think this works >> >> --8<---cut here---start->8--- >> >> (defun bh/agenda-sort-by-heading-date (a b) >> "Sorting strategy for agenda items. >> Late deadlines first, the

Re: [O] Agenda TODO sorting by date

2012-03-03 Thread James Harkins
At Sat, 03 Mar 2012 14:03:05 -0500, Bernt Hansen wrote: > I think this works > > --8<---cut here---start->8--- > > (defun bh/agenda-sort-by-heading-date (a b) > "Sorting strategy for agenda items. > Late deadlines first, then scheduled, then non-late deadline

Re: [O] Agenda TODO sorting by date

2012-03-03 Thread James Harkins
At Sat, 3 Mar 2012 08:38:32 -0800, Alan E. Davis wrote: > I am definitely not a programmer, and for sure not the one who could guide > you on writing a sort > function.  HOWEVER, emacs has a really nice facility for doing so, if you > decide you want to try > that.  > > I had to write a program

Re: [O] Agenda TODO sorting by date

2012-03-03 Thread Bernt Hansen
James Harkins writes: > At Fri, 02 Mar 2012 21:48:42 -0500, > Bernt Hansen wrote: >> You could write a custom sorting function that parses out the date from >> the heading and compares them. There may be a better way to do this >> that I'm not aware of for this. >> >> Set this function up in or

Re: [O] Agenda TODO sorting by date

2012-03-03 Thread Alan E. Davis
I am definitely not a programmer, and for sure not the one who could guide you on writing a sort function. HOWEVER, emacs has a really nice facility for doing so, if you decide you want to try that. I had to write a program to alphabetize a lexical list in Chuukese, in an arbitrary order other th

Re: [O] Agenda TODO sorting by date

2012-03-03 Thread James Harkins
At Fri, 02 Mar 2012 21:48:42 -0500, Bernt Hansen wrote: > You could write a custom sorting function that parses out the date from > the heading and compares them. There may be a better way to do this > that I'm not aware of for this. > > Set this function up in org-agenda-cmp-user-defined and > o

Re: [O] Agenda TODO sorting by date

2012-03-02 Thread Bernt Hansen
James Harkins writes: > Given this: > > * Category 1 > ** TODO First todo in file <2012-03-30 Fri> :Tag: > ** TODO Second todo in file <2012-03-29 Thu> :Tag: > * Category 2 > ** TODO Third todo in file <2012-03-28 Wed> :

[O] Agenda TODO sorting by date

2012-03-02 Thread James Harkins
Given this: * Category 1 ** TODO First todo in file <2012-03-30 Fri> :Tag: ** TODO Second todo in file <2012-03-29 Thu>:Tag: * Category 2 ** TODO Third todo in file <2012-03-28 Wed> :Tag: ** TODO Fourth todo in fil

[O] Agenda TODO sorting by date

2012-03-01 Thread James Harkins
I'm still poking around, trying to figure out how to sort my TODO tag search the way that I want. Initially I thought org-agenda-sorting-strategy would do it, but only just found the variable's documentation: "Sorting structure for the agenda items of a single day." Since I want to sort the TO