sort aggregation group in one group & fix duplicate item issue in aggregation group