naggie / dstask

Git powered terminal-based todo/note manager -- markdown note page per task. Single binary!
https://calbryant.uk/blog/dstask-a-taskwarrior-alternative/
MIT License
794 stars 47 forks source link

show-projects sorting #105

Closed cgardner closed 3 years ago

cgardner commented 3 years ago

When running show-projects, it doesn't seem to be doing any sorting. This makes a bit more work to see if specific projects exist.

To start, it would be helpful if it was sorted alphabetically to start.

naggie commented 3 years ago

Fixed in master. Projects were actually randomly sorted as we were iterating over a map -- something the compiler deliberately does to avoid implementation-specific dependence.

Sorted alphabetically, which I think is the best way.