Allowing sorting of todos