© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•14mo ago•
5 replies
.tree

Sorthing house numbers of type string

Say you have a string property for house numbers (1, 98, 24b) and want to sort them. How can you sort them by number as well as by letter? If I just sort them with OrderBy I get 1, 138, 24 which isn't correct.
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

adding numbers from a string array
C#CC# / help
2y ago
sum of all numbers divisible by 3 in a string
C#CC# / help
4y ago
✅ Trying to count numbers on a string
C#CC# / help
3y ago
String : Immutable reference type
C#CC# / help
3y ago