How to convert a Counter object into a usable list of pairs?

python, python-3.x

Solution

Err...

>>> list(collections.Counter(('5', '5', '4', '5')).items())
[('5', 3), ('4', 1)]

Problem

The code I have now: ``` from collections import Counter c=Counter(list_of_values) ``` returns: ``` Counter({'5': 5, '2': 4, '1': 2, '3': 2}) ``` I want to sort this list into numeric(/alphabetic) order by item, not number of occurrences. How can I convert this into a list of pairs such as: ``` [['5',5],['2',4],['1',2],['3',2]] ``` Note: If I use c.items(), I get: dict_items([('1', 2), ('3', 2), ('2', 4), ('5', 5)]) which does not help me... Thanks in advance!

Original source