Given List
I need to sort the list of IP addresses in a logical order (i.e. \"192.168.0.2\" comes before \
You could split this into 4 integer values, and sort by each in turn:
var results = ips
.Select(s => string.Split('.').Select(str => int.Parse(str)).ToArray() )
.OrderBy(intArray => intArray[0])
.ThenBy(intArray => intArray[1])
.ThenBy(intArray => intArray[2])
.ThenBy(intArray => intArray[3])
.Select(intArray => string.Join(".", intArray) );