make task list sortable and add test for TodoCtrl