Hi,
I need to sort an array by count how many times each value is present in the array and then sort the array starting from the value that has majority.
es.
array('yellow','red','brown','red','yellow','red')
I want to sort and "clean" it (array_unique) and get this result:
1th red, 2nd yellow, 3th brown ...
How can I do?
thanks a lot!