This keeps the code clean and keeps the operations to be done in each comparison close to the minimum, without using reverse.
But you're still doing a multiplication for on each comparison. Why avoid using reverse?
In reply to Re^2: sort direction
by Perl Mouse
in thread sort direction
by rsiedl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |