Matthew Lundin <m...@imapmail.org> writes: > David Engster <d...@randomsample.de> writes: >> I guess this should be simple but somehow it's not working for me. I >> want to generate a todo list which is sorted according to the scheduled >> date. Consider the following test.org file:
[...] >> This minimal setup >> >> (setq org-agenda-files '("~/orgtest/test.org")) >> (setq org-agenda-sorting-strategy >> '((agenda time-up priority-down category-keep) >> (todo time-up priority-down category-keep) >> (tags priority-down category-keep) >> (search category-keep))) >> >> should sort TODOs according to time, right? But when I do > As far as I understand it, time-up sorts only by time of day in the > agenda view. I.e., it will place items that have been scheduled for a > particular hour at the top of the agenda. > > Here's some info from the docstring: > > ,---- > | time-up Put entries with time-of-day indications first, early > first > | time-down Put entries with time-of-day indications first, late > first > | > | Pull out all entries having a specified time of day and sort them, > | in order to make a time schedule for the current day the first thing in the > | agenda listing for the day. > `---- Thanks for the clarification. This is a bit confusing, since sorting by priority works in the todo list, but sorting with date does not. Also, since I call the function 'org-agenda', it is a bit unexpected that when I press 't' afterwards I don't really get an agenda but a TODO list, which seems to behave differently in some aspects from the normal agenda view I get when pressing 'a'. > There is the possibility of using a user-defined function. Perhaps you > could use that to sort by date. > > ,---- > | user-defined-up Sort according to `org-agenda-cmp-user-defined', high > last. > | user-defined-down Sort according to `org-agenda-cmp-user-defined', high > first. > `---- Unfortunately, this does not help, since there is no time information in the entries 'a' and 'b' to sort by; it seems the timestamps are simply not extracted when building TODO lists. Thanks for your help, -David _______________________________________________ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode