Added an aggregation operation that assumes a sorted rowset.