order logs by timestamp