I was wondering if there is any data structure in python that can fulfil my requirements.
I have a tuple of such
(item1, item2, item3, count)
I would like to sort by count in descending order. Is there any structure i could use in python to achieve this? The elements can be reordered if necessary.
Yes i have a list of tuples which will look like this above