Fixing the sorting by making the timestamp first in tuple