How to sort List> according to List number of fields?

前端 未结 5 616
渐次进展
渐次进展 2021-01-22 15:22

How do I sort List> according to number of fields?

The list got structure like

a|b|c|d|eeee|rere|ewew|
ewqewq|ewew|
ewew|ewewewewew|
<         


        
5条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-22 16:20

    List> list; // filled elsewhere
    list.Sort((x,y) => x.Count.CompareTo(y.Count););
    

提交回复
热议问题