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
How about:
list.Sort((x, y) => { int ix, iy; return int.TryParse(x, out ix) && int.TryParse(y, out iy) ? ix.CompareTo(iy) : string.Compare(x, y); });