How can I sort an array by how many times a data is in the array?
I have an array with multiple numbers in it. I can't seem to figure out how to sort it base on the total amount a number is in the array. For example, my array has 1, 1, 1, 2, 2, 3, 3, 3, 3. I want to be able to sort it so it would look like 3, 1, 2. I also do not want to show duplicates.
Bookmarks