I have a dictionary of characters and their frequency in a text(or word):
'H' => 1
'l' => 2
'e' => 1
'o' => 1
and I want to order it by value so:
'H' => 1
'e' => 1
'o' => 1
'l' => 2
the order of ‘H’, ‘e’ or ‘o’ is irrelevant. It simply needs to be ordered either by ascending or descending value order. Is there a built in function for that?