in reply to sorting with substrings

I'm still new to Perl and have a sorting question.

A very similar question has been asked only a few days ago.

Is there such an thing as a struct in PERL?.

There's something similar both in the language called Perl and in the implementation of that language you're using, called perl. In PERL, I don't know! ;-)