diff --git a/screen_main.go b/screen_main.go index 7251c8f..7e8c84a 100644 --- a/screen_main.go +++ b/screen_main.go @@ -116,6 +116,8 @@ func (screen *MainScreen) reloadList(bundle termboxScreen.Bundle) error { (*screen.displayList) = append(*screen.displayList, av) } } + screen.displayList.Sort(todotxt.SORT_CREATED_DATE_DESC) + screen.displayList.Sort(todotxt.SORT_PRIORITY_ASC) case MainBundleListDone: if err := app.LoadDoneList(); err != nil { return err