check todo is not empty
adding in sorting