#!/usr/local/bin/perl use strict; use Sort::Versions; my @sections = qw(2.1.7 2.2 3.4a 2.13 1 2); @sections = sort versions @sections; print "@sections\n"; # prints "1 2 2.1.7 2.2 2.13 3.4a"Hope this helps! Leon
In reply to Re: Sorting on Section Numbers
by acme
in thread Sorting on Section Numbers
by Zoogie
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |