You could parse each string to get the preceding numeric values until the
first character is found. Use the numeric values converted to a number to
sort. When the numbers match, use the characters that follow to make the
decision. Similarly, if the string starts with a character use that to sort.
You might want to write a method that does the comparison between two strings
the way you want and use that in a bubble sort function.
Adrian.
--
[Please mark my answer if it was helpful to you]
"Diogo Alves" wrote:
Greetings,
I am trying to sort this values on a datatable
1
2
12rw
3
12r
4v
10a
e1
1w3
This was suposed to be sorted like this
1
1w3
2
3
4v
10a
12r
12rw
e1
I can't find a solution to sort this way.
Can anyone help me?