The script is not working as intended…. this script is highlighting the first 3 entry of an array after sorting it in ascending ….. however i want the first 3 smallest number in the array to be highlighted after sorting… ie. removing the duplicates in the array.
for ex – original array = [8,3,4,2,2,2,3,5,6,4]
after sorting the array will be = [2,2,2,3,3,4,4,5,6,8]
so current script is highlighting 2,2,2 but my requirement is to highlight every entry which equal to 2,3,4 .
Hope i was able to explain.
Same for the greatest one. it should highlight first 3 greatest number after sorting in descending order avoiding duplicates.