Question: How can I turn Tally output into a list of lists?

I am presently using Tally to read through a list of numbers to try and calculate their frequency, I end up with a list as follows:

frequency := [1 = 6, 2 = 7, 3 = 91, 4 = 10], etc.

Now, I've been given a function that should turn this function into a "list of lists":

[code]
list_of_lists := n -> [ op(n)[1],  op(n)[2] ]
[/code]

As can be expected from looking at this function, it only returns the first two elements from the original list

If I pass in the frequency list, I only end up getting: [1=6, 2 = 7]

Is there a way to split the list elements at the ='s character, to instead create a list like:
[ [1,6],[2,7],[3,91],[4,10] ]

That way I can then sort each number based on it's frequency?

Thanks for all your help!

Please Wait...