function Grouping(set,hashFct) { // initialization during construction of class this.set = set; // setting by group() this.sortedset = []; this.group = function() { this.sortedset = []; for (var i=0;i