Something fails to sort the sheet with a complex object, I seem to be doing everything correctly, but the list is not sorted.
List.groupby(x=>x.name).orderby(x => x.key.count()).reverse().toarray()
Tell me what the problem can be? Or how to debug code here? Never linq debugged.
Ps I wrote from the memory of the tablet, could be a little wrong in the names