Hello,
I have an array of numbers. I want to sort the array by the most occurances of the top 3 numbers in the entire array, and the first occurance in the case of a tie. Anyone have a slick way to do this?
So my array looks like this:
19213
14389
14388
19563
19213
2770
3143
3589
19213
19563
19785
19213
17684
19126
9106
19213
13819
1934
12245
So the result would be:
19213
19563
14389
Any ideas?