Improvement on order by