Yes, that sort will work. In the original example, the second sort simply undid the results of your first sort.
In your new sort, the part after '||' will only happen if $a->{z} == $b->{z}, so it works like you want it to.
In reply to Re: Re: Re: Re: Sorting issues
by jmanning2k
in thread Sorting issues
by hokie
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |