G
Guest
Hello,
I´ve a simple question about existing data structures/ collections.
Is there a way to sort a dictionary (or any comparable collection/ data
structure) by values instead of by keys?
For example if you have a dictionary with words as keys and the
frequency of these words in a text as values.
What is the most performant way to sort these dictionary by the
frequency of the words (=values)?
Regards,
Martin
I´ve a simple question about existing data structures/ collections.
Is there a way to sort a dictionary (or any comparable collection/ data
structure) by values instead of by keys?
For example if you have a dictionary with words as keys and the
frequency of these words in a text as values.
What is the most performant way to sort these dictionary by the
frequency of the words (=values)?
Regards,
Martin