I have some dictionary of values that were taken from a string field and a numeric column in a database. Since each string in the field is distinct, it serves as the dictionary's key.
I know how to sort by keys, but how do I sort by values?
How do I order a list of dictionaries according to a dictionary's value? can maybe alter my code to create a list of dictionaries, but since I don't actually need one, I was wondering if there was a quicker way to sort either in ascending order or descending order.