Fixed sort problem in todo app.