To-dos sorted by date

Created first closure, refactoring.