Updating the sequence of the to-do items