James Harkins <jamshar...@gmail.com> 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> :Tag: > ** TODO Fourth todo in file <2012-03-31 Sat> :Tag: > > I do C-c a < M Tag <ret> and get: > > Headlines with TAGS match: Tag > Press `C-u r' to search again with new search string > todo_sort: TODO First todo in file <2012-03-30 Fri> > :Tag: > todo_sort: TODO Second todo in file <2012-03-29 Thu> > :Tag: > todo_sort: TODO Third todo in file <2012-03-28 Wed> > :Tag: > todo_sort: TODO Fourth todo in file <2012-03-31 Sat> > :Tag: > > I want to configure a custom agenda command so that I get: > > Headlines with TAGS match: Tag > Press `C-u r' to search again with new search string > todo_sort: TODO Third todo in file <2012-03-28 Wed> > :Tag: > todo_sort: TODO Second todo in file <2012-03-29 Thu> > :Tag: > todo_sort: TODO First todo in file <2012-03-30 Fri> > :Tag: > todo_sort: TODO Fourth todo in file <2012-03-31 Sat> > :Tag: > > How do I do this?
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 org-agenda-sorting-strategy to get the results you want. HTH, Bernt