I have a dictionary<string, int> where Key: ‘Some Word’ and Value : ‘No of occurance’. I want to sort the dictionary order by No of occurance of the word from Maximum to the least.
give a try on
Use an assign activity:
left side: yourDictVar
yourDictVar.OrderByDescending(Function (x) x.Value).ToDictionary(Function (x) x.Key,Function (x) x.Value)
it will overwrite the dictionary with the filtered dictionary