note
kennethk
Seems like this should be straightforward:
<c>
my @list = sort { @$a <=> @$b
or join(' ', reverse @$a) cmp join(' ', reverse @$b)
} @input;
</c>
<p>Does that fit the bill? Seems like my understanding of the spec is inconsistent with the other implementations, so I don't know if I've missed something.
<p>If the array operations turn pricey, you could optimize with an [http://www.mail-archive.com/beginners@perl.org/msg01222.html|Orcish Maneuver].
<!-- Node text goes above. Div tags should contain sig only -->
<div class="pmsig"><div class="pmsig-712372">
<hr />
<p>#11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.</p>
</div></div>
1080594
1080594