KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Given List<string> ips = new List<string>(); I need to sort the list of IP addresses in a logical order (i.e. "192.168.0.2" comes before "192.168.0.100"). Currently (and correctly, alphabetically) if the list contains: 192.168.0.1 192.168.0.2 192.168.0.10 192.168.0.200 ips.OrderBy(p => p) returns: 192.168.0.1 192.168.0.10 192.168.0.2 192.168.0.200
Tags (comma-separated)
Save Edits
Cancel