aggregation performance tuning

sort key added