Sort trace recods by timestamp.