Sort a list with duplicate items by the number of duplicate occurrences
Solution 1:
You could use a list comprehension and Counter
:
from collections import Counter
print([element for element,count in Counter(list1).most_common()])
Outputs:
['five', 'two', 'three', 'six', 'four', 'one']