Added sort function to To Do list