fix order by plan