KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have a string that contains numbers separated by periods. When I sort it appears like this since it is a string: (ascii char order) 3.9.5.2.1.1 3.9.5.2.1.10 3.9.5.2.1.11 3.9.5.2.1.12 3.9.5.2.1.2 3.9.5.2.1.3 3.9.5.2.1.4 etc. I want it to sort like this: (in numeric order) 3.9.5.2.1.1 3.9.5.2.1.2 3.9.5.2.1.3 ... 3.9.5.2.1.9 3.9.5.2.1.10 3.9.5.2.1.11 3.9.5.2.1.12 I know that I can: Use the Split function to get the individual numbers Put the values into an object Sort the object I prefer to avoid all of that work if it is duplicating existing functionality. Is a method in the .net framework that does this already?
Tags (comma-separated)
Save Edits
Cancel