support for sorting by an aggregated column is added