add sorting capability to todo list