fix order by time