I do not have experience with this but a quick reading of perlebcdic suggests that perhaps this could be accomplished with Encode. Given @strings which contains a set of ordinary character strings on a non-EBCDIC platform, the following should sort them in EBCDIC order: