fixed timestamp sorting order