Some more adjustments to the order by/limit functionality on groupBy queries

1) Unit tests for order by and limit stuff for groupBy queries
2) Adjustments to order by and limit stuff in light of unit tests-n-stuff