How can I sort filenames like this
B-100.txt B-11.txt A-03.txt A-01.txt C-110.txt C-10.txt
B-11.txt B-100.txt A-01.txt A-03.txt C-10.txt C-110.txt
I'd like to leave the prefix order --B, A, and then C, not ABC-- as is but sort the numbers at the end numerically not alphabetically. The numbers go like
01, 02, ....10, 11, ....100, 101, ...
There's always one hyphen in each filename and it delimits the prefix part and the number part.
I'd like to sort the filenames of files that I export from some software and the software automatically adds this kind of peculiar serial numbers at the end so I'm in trouble generating a sorted list of those filenames. I can't rename those files before sorting.