1
2A
2
3
20
The numeric parts can be up to 99999 and the alpha part can be any letter a to z
The list can be in any order and I need to sort the list so the desired output would be:-
1
2
2A
3
20
tried this:-
Code: Select all
Global NewList MyStrings.s()
AddElement(MyStrings())
MyStrings() = "1"
AddElement(MyStrings())
MyStrings() = "2A"
AddElement(MyStrings())
MyStrings() = "2"
AddElement(MyStrings())
MyStrings() = "3"
AddElement(MyStrings())
MyStrings() = "20"
ForEach MyStrings()
Debug MyStrings()
Next
Debug ""
SortList(MyStrings(),#PB_Sort_Ascending)
ForEach MyStrings()
Debug MyStrings()
Next
Regards
CD