sorting modified to only timestamp