I have an array of data, which contains some number and then some letters. Niether the amount of number in the numbers part, nor the number of letters in the letter part is constant:
BT1A
BT1AB
BT1B
BT2A
BT2AB
BT2B
BT11A
BT11AB
BT11B
BT19A
BT19AB
BT19B
BT20A
BT20AB
BT20B
IE. the numbers are more significant than the letters.
However the "BT" at the start of the string IS constant. How would I sort an array into the order described as above? I cant figure out a way of doing it that wont require silly amounts of code!
I hope I'm making sense today.
Thanks,
elziko
BT1A
BT1AB
BT1B
BT2A
BT2AB
BT2B
BT11A
BT11AB
BT11B
BT19A
BT19AB
BT19B
BT20A
BT20AB
BT20B
IE. the numbers are more significant than the letters.
However the "BT" at the start of the string IS constant. How would I sort an array into the order described as above? I cant figure out a way of doing it that wont require silly amounts of code!
I hope I'm making sense today.
Thanks,
elziko