orange-van-60470
09/30/2022, 5:01 PMHaxe
var arr = new Array<{value:T,count:Int}>();
for( thing in stuff ){
var found = false;
for( item in arr ){
if( thing == item.value ){
found = true;
item.count++;
}
}
if( found == false ){
arr.push( { value: thing, count: 1 } );
}
}
// implement custom sort on item.count. detail for reader.