I want to know the best way to reorder this list with values stored in a dictionary. I want it to be reordered from greatest to least. This list is used in a list viewer to show the user the most voted item at the top. I've been stumped on how to do this and need some help. If you find a way without a dictionary that's fine!
So from my understanding and quick reading of the docs, that block will be simply 1 dictionary that contains a list of the keys (names) and values (votes) (2 columns chart)? Meaning that I won't have to swift through a list and the many dictionaries.
Thank you guys for helping me improve my code and pointing me in the right direction! I've found a way to order from greatest to least using an extension made by: List Sort Extention @Faraz_Firoz. Then using the unordered votes to match the index of the ordered votes. Though it made duplicates, so I had to remove them by using: Remove Duplicates in a list @Angelo_D.