I can't figure out how to sort a string array first by letter then by number combination. Here is the sample:
$a = @('aa101','aa11','ab10','ab9','a111','a22','a01')
I would like to see the result after the sorting as follow:
a01 a22 a111 aa11 aa101 ab9 ab10
Please help me to find out the answer by using PowerShell script.
a), sorting by numbers you would geta01first (01is1, the smallest number in the set), thenab9(9 is the second-smallest), thenab10etc.