enhanced query optimization when order by indexed field