sort aggregation group in one group & fix duplicate item issue in aggregation group & remove unused code in cubeEdit.js

sort aggregation group in one group & fix duplicate item issue in aggregation group & remove unused code in cubeEdit.js