I need to sort a text that contains leading numbers.
One problem is that the "numbers" may or may not have padded, leading zeros or an empty string..
So for example I have an array with strings like this
Code: Select all
a$(0) = "100,test1.txt"
a$(1) = "10 test2.txt"
a$(2) = "200test3.txt"
a$(3) = "20 test4.txt" ;tabulator
Code: Select all
a$(0) = "10 test2.txt"
a$(1) = "100,test1.txt"
a$(2) = "20 test4.txt"
a$(3) = "200test3.txt"
Code: Select all
a$(0) = "10 test2.txt"
a$(1) = "20 test4.txt"
a$(2) = "100,test1.txt"
a$(3) = "200test3.txt"
Code: Select all
a$(0) = "100,test1.txt"
a$(1) = "10 test2.txt"
a$(2) = "200test3.txt"
a$(3) = "20 test4.txt" ;tabulator
b(0) = 100
b(1) = 10
b(2) = 200
b(3) = 20
thanks