sub sortData { my $dataType = pop; if($dataType eq 'Integer' || $dataType eq 'Float') { sort {$a <=> $b} @_; } else { sort @_; } }
In reply to Re: A problem sorting numbers with sort()
by Anomynous Monk
in thread A problem sorting numbers with sort()
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |