I think I have a reasonable handle on agenda custom sorting, but I can't figure out how habits sort themselves within that agendas.
For a certain agenda view I sort as '(time-up habit-down todo-state-down priority-down)
which largely does exactly what I want and expect. The daily schedule is at the top and the due habits without scheduled/deadline hours are at the bottom. Within habits anything overdue (red in default graph) is first, then anything due today (yellow in default graph), then anything available but not due today (green in default graph). Great!
But today for example I see two tasks due today, one at C priority and one at A priority. Why is the C priority listed first?
In the non-habit tasks 'priority-down
puts A above B above C but in habits it looks reversed.
EDIT: Looking further into this only has me more confused. I can't see. any explanation for this ordering: What I notice here that differs from the normal sorting rule mentioned above is:
- In items due today an unprioritized item (#E in my config) is above an A priority item
- The 'available' habits are not sorted by priority at all - CBCCB
- They aren't alphabetical either: basement is before upstairs, but vacuum is before practice.
- They aren't sorted by category;
House
is split two at the top and one at the bottom.