Is there a easy way to find duplicates in list, and then sort them by number of appearance? Also, duplicates should be removed.
Eg. you have a List<String> like this:
List<String> = new List<String>{"6","1","2","2","4","6","5","1","6","6","2"};
Question is, how to convert this list into -> “6”, “1”, “2”, “4”, “5”?
use
Linq.Distinct()