Hello,
I have a list of lists of strings (List<List<string>>).
Anyone knows how can I sort the lists on the primary list by their
count property?
thanks,
:wave:
Printable View
Hello,
I have a list of lists of strings (List<List<string>>).
Anyone knows how can I sort the lists on the primary list by their
count property?
thanks,
:wave:
The List.Sort method is overloaded and allows you to specify a Comparison<T> or an IComparer<T>. You should read the relevant help topics to determine how to create your own Comparison<List<string>> or IComparer<List<string>> that will compare the Lists by their Count property.