Exercise: sort mixed string
In a file we have the string where each string has a single letter at the beginning and then a number. Sort them based on the number only, disregarding the letter.
Input:
A4 B1 A27 A3
Expected output:
B1 A3 A4 A27
File:
examples/perlarrays/sort_mixed_strings.txt
A1 A27 C1 B1 B12 A38 B3 A3
Expected output from sample file
A1 C1 B1 B3 A3 B12 A27 A38