Sorting entries according to their creation time