Update of Sorting by date and time

Sorting by date and time tested and working