View Single Post
Here's what I've got as far as the code I'm entering:

Code:
ofexport -p 'note="#currentfocus"' -a flatten -t next -E -a done=any -E -t "name='Phase 2: Substantive Work'" -E -t "name='Phase 3: Tie up loose ends and close transaction'" -E -t "name='Phase 1: Admin'" -E -t "name='Document Drafting:'" -E -t "name='Document Review:'" -E -t "name='Invoice and Payment'" -E -t "name='Draft Remaining Formation Paperwork'"  -C -a prune -t "sort due" -T flat -v --open -o ~/Desktop/x.txt
It is definitely not sorting according to the due dates on the tasks. Not sorting by name either. Sort order is a bit of mystery. For privacy reasons, I made a template that just has due date and context in it. Here's what the output looks like:

Quote:
- @due(2013-04-29) @context(Office)
- @due(2013-05-20) @context(Computer-Offline)
- @due(2013-05-17) @context(Computer-Offline)
- @due(2013-04-16) @context(Computer-Offline)
- @due(2013-05-17) @context(Computer-Offline)
- @context(Computer-Offline)
- @due(2013-05-17) @context(Computer-Offline)
- @due(2013-05-21) @context(Computer-Offline)
- @due(2013-05-01) @context(Computer-Offline)
- @due(2013-05-13) @context(Computer-Offline)
- @due(2013-04-26) @context(Waiting For)
- @due(2013-04-16) @context(Waiting For)
- @context(Waiting For)
- @due(2013-05-10) @context(E-Mail Follow-Up)
- @due(2013-05-02) @context(E-Mail Follow-Up)
- @due(2013-05-09) @context(Computer-Online)
Definitely not sorting by Project Name or Task Name either. So not sure if there's any reason or rhyme to it.

Ideally, if would sort like this, with items missing a due date at the end of the list:

Quote:
- @due(2013-04-16) @context(Computer-Offline)
- @due(2013-04-16) @context(Waiting For)
- @due(2013-04-26) @context(Waiting For)
- @due(2013-04-29) @context(Office)
- @due(2013-05-01) @context(Computer-Offline)
- @due(2013-05-02) @context(E-Mail Follow-Up)
- @due(2013-05-09) @context(Computer-Online)
- @due(2013-05-10) @context(E-Mail Follow-Up)
- @due(2013-05-13) @context(Computer-Offline)
- @due(2013-05-17) @context(Computer-Offline)
- @due(2013-05-17) @context(Computer-Offline)
- @due(2013-05-17) @context(Computer-Offline)
- @due(2013-05-20) @context(Computer-Offline)
- @due(2013-05-21) @context(Computer-Offline)
- @context(Computer-Offline)
- @context(Waiting For)