I see no reason why cLFIaVa's original solution will not sort all Canadian postal codes as posed in the original question.
All Canadian postal codes have alterating letters and numerals, never two letters in a row and never two numerals in a row.
However, NEITHER solution will work for British postal codes since those codes may or may not have adjacent letters/numerals.
I also see that the question posed was about 'alpha/numeric' values, not pure alpha values nor pure numeric values. These pure values are easily sorted using the second method.
Alpha/numeric values that are in a regular format (like Canadian postal codes) are easily sorted via the first method unless there are pure numeric values mixed in. In that case the second method is required.
Regular format is defined as all numeric values within the a/n codes as being the same length and in the same positions through the code list. Anything else is irregular. A-12-XY-569 and X-95-TH-085 would make up a regular list, but if you add A-123-XY-569 or X-95-TH-85, the list becomes irrregular.
Values in an irregular format (British codes for example) can be sorted with either method above, but will give odd results most of the time, similar to the 222222 vs 555 syndrome (SW10 A55 will come before SW5 A55).
To sort mixed irregular alpha/numeric values so all values are alphabetically and numerically in order requires parsing each piece of the code, sorting it separately, and then concatenating the pieces back together. And if done wrong, this will really make a mess of the codes.
Even for something as simple as the British postal codes this can be a daunting experience. Woe unto anyone trying to do this with Ford part numbers or old style Borg Warner part numbers.
mmerlinn
"Political correctness is the BADGE of a COWARD!"