Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
1-liner: boring solution in Clear category for Frequency Sorting by przemyslaw.daniel
frequency_sorting = lambda d: sorted(d, key=lambda x: (-d.count(x), x))
March 4, 2018