CPAN is your friend. Use Sort::Versions - from the docs:
use Sort::Versions; @l = sort { versioncmp($a, $b) } qw( 1.2 1.2.0 1.2a.0 1.2.a 1.a 02.a ) +;
In reply to Re: Sorting non-standard elements
by fglock
in thread Sorting non-standard elements
by tradez
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |