change the spot of ORDER BY in SQL select for queries with limits
fixing order by for large data that is prod now