Sort by Priority then date

This commit is contained in:
Brian Buller 2019-04-23 08:16:28 -05:00
parent 9a86542303
commit 05e41675b1

View File

@ -116,6 +116,8 @@ func (screen *MainScreen) reloadList(bundle termboxScreen.Bundle) error {
(*screen.displayList) = append(*screen.displayList, av) (*screen.displayList) = append(*screen.displayList, av)
} }
} }
screen.displayList.Sort(todotxt.SORT_CREATED_DATE_DESC)
screen.displayList.Sort(todotxt.SORT_PRIORITY_ASC)
case MainBundleListDone: case MainBundleListDone:
if err := app.LoadDoneList(); err != nil { if err := app.LoadDoneList(); err != nil {
return err return err