Implemented sort functionality to 'ToDo' list