gregbell/active_admin — pull request #2864 by artinboghosian (2014-01-13 23:29:59+00:00)
Title: Only reorder collection if it is grouped

Only need to use work around of GROUP BY + COUNT queries if we are actually using grouping.