When doing an aggregation, it does not appear to be possible to sort the data by one of the aggregated columns. For example, if we are doing a SUM of prescriptions written by a doctor and grouped on last name and summed by a prescription count column, it is not clear how to sort by the summed column.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | socrata-aggregation-sort-2567239-2.patch | 700 bytes | papagrande |
Comments
Comment #2
papagrandeThe add_orderby() method wasn't handling sorting on aggregation functions. This patch fixes it.
Comment #3
marksskram commentedAny ETA on getting this merged into the module?
Thanks!!
Comment #5
arh1 commentedThis was committed per 0ebc979.
So @marksskram it's in the dev release from today, and will get rolled into the next stable release.
Comment #6
papagrandeRolled into dev and beta1.