add timestamp sorting