You are comparing string values 'PQRST' etc... but using the numerical sort (spaceship '<=>') operator. You should be using cmp. See sort for more info.
In reply to Re: Sort hash ref of Hash of Hashes
by BioLion
in thread Sort hash ref of Hash of Hashes
by kalyanrajsista
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |