fix order on 1 day queries