Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
1-liner made even easier with itertools.chain.from_iterable & collections.Counter solution in Creative category for Sort Array by Element Frequency by Stensen
frequency_sort = lambda e: list(__import__('itertools').chain.from_iterable([[i[0]]*i[1] for i in __import__('collections').Counter(e).most_common()]))
Sept. 21, 2020