I have been trying to emulate EBCDIC sort in perl but without any success. I am a new user of perl . I have seen answers for alphanumeric sorts but not mixed alphabet and numeric sort. In EBCDIC Collating sequence, alphabets are soreted first in ascending order and then numeric.
Here is what I want to achieve:
Unsorted
ased12
frtg
Frth
zdcs
123
12h
awq
------------------
Sorted
ased12
awq
frtg
Frth
zdcs
123
12h
Another unrelated question but how to get LC_COLLATE=EBCDIC working in UNIX sort