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.
- 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;
Houseis split two at the top and one at the bottom.