Sorting List in C#

后端 未结 7 1640
囚心锁ツ
囚心锁ツ 2020-11-28 12:01

How to sort a List based on the item\'s integer value

The list is like

\"1\"
\"5\"
\"3\"
\"6\"
\"11\"
\"9\"
\"NUM1\"
\"NUM0\"

The r

7条回答
  •  离开以前
    2020-11-28 12:39

    I don't think you need anything besides listName.Sort() because sort() method uses default comparer to quick sort nodes. Default comparer does exactly what you are interested in.

提交回复
热议问题