in reply to Re: A "strange" behaviour, at least to me :)
in thread A "strange" behaviour, at least to me :)
passes a hash ref to sort. You meant@values = sort {},arraynosort(Values=>\@orig_values);
@values = sort { $a cmp $b } arraynosort(Values=>\@orig_values);
By the way, the least invasive solution is:
@values = sort +arraynosort(Values=>\@orig_values);
In Section
Seekers of Perl Wisdom