Newbie Alert:
I'm very new to using Dictionary or anything related to KeyValuePair.
I have a Dictionary and I added some values to it.var first_choice_dict = new Dictionary<string, int>();
The names are the keys and the numbers are value which indicates their choices.
Bob, 2
Chad, 1
Dan, 3
Eden, 5
Fred, 1
Greg, 4
Hope, 2
Ivan, 1
Jim, 2
May I please know if there is a way to sort them by the values that are same and then move only the keys to a new dictionary(or with the values also should be fine), as seen below:
Sorted:
Abe,1
Chad,1
Fred,1
Ivan, 1
......
New Dictionary of Choice 1:
Abe,Chad,Fred,Ivan