Allows user to sort todo list with different options