in reply to Sorting problem with Orcish Manuever
withreturn ($va->[0] <=> $vb->[0]) or ($va->[1] cmp $vb->[1]);
and it works.return ($va->[0] <=> $vb->[0]) || ($va->[1] cmp $vb->[1]);
p.s. Please don't make us hunt around for the question so much. When I finally found exercise 2 in that section, it simply referred me to another exercise in a different section! How hard is quoting a question of 2 lines?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Sorting problem with Orcish Manuever
by roboticus (Chancellor) on May 22, 2006 at 16:31 UTC | |
by planetscape (Chancellor) on May 23, 2006 at 07:32 UTC | |
by roboticus (Chancellor) on May 23, 2006 at 11:32 UTC |