Hi all.
I've searched the past threads about sorting and even though there are many existing resolved threads, none address my problem. So let me explain:
Hi need to sort strings in an array. Nothing to fancy yet. But my problem is that some of the values I need to sort are actually numbers! For example, I might have to sort:
12
67
2
X67
L101
etc...
When using standard string sorting, "2" is always greater than "19" since the comparison is made on the first character.
So does anyone knows a string sorting algorythm where "2" will not be greater than "19"?
Thanks!




Reply With Quote