If your data matches /^(\D+)(\d+)$/:@sorted = sort { substr($a, 1) <=> substr($b, 1) } @data
use Sort::Key::Multi qw(si_keysort); # "si" indicates that the sorting keys # are a string and an integer my @sorted = si_keysort { /^(\D*)(\d*)$/ } @data;
In reply to Re: Simple sort query
by salva
in thread Simple sort query
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |