add aggregate sum/min/max/avg/count for sort cmd