See perldoc -q sort. Use capturing parens to extract the different chunks and compare the corresponding chunks. Use a Schwartzian transform so you don't wind up pulling items apart multiple times.
In reply to Re: Sorting non-standard elements
by Fletch
in thread Sorting non-standard elements
by tradez
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |