Sorting a collection of numeric Strings

How confident are you that the Code is (a) numeric and (b) present?
var sortedList = customerList.OrderBy(c => int.Parse(c.Code));
If you have doubts, try another approach
Func<string, bool> isInteger = s => { int temp; return int.TryParse(s, out temp); };var query = customerList.OrderBy(c => isInteger(c.Code) ? int.Parse(c.Code) : int.MaxValue

Comments