Have an key value pair like below
var point = [];
point["I1"] = 1000;
point["I2"] = 2000;
point["I3"] = 1000;
point["I4"] = 5000;
point["I5"] = 2000;
point["I6"] = 4000;
want to find the duplicate values, result hash should contain ONLY DUPLICATE value information.
result["1000"] = " I1,I3";
result["2000"] = "I2,I5";
duplicate values should be keys of result hash.
I sort the array, but clueless to traverse hash to check the duplicate values to build the result hash