support sorting of data properly in couchagg and sqlagg reports
Merge pull request #220 from dimagi/agg_report_sorting

support sorting of data properly in couchagg and sqlagg reports