Perl: the Markov chain saw | |
PerlMonks |
Re: Version Sortingby TedPride (Priest) |
on May 30, 2006 at 10:06 UTC ( [id://552445]=note: print w/replies, xml ) | Need Help?? |
The following does what you need:
Basically, it converts each number part to a byte value, so the resulting version string is fixed-width (for the number of fields it has) and can be efficiently sorted. Then it sorts and converts back.
In Section
Seekers of Perl Wisdom
|
|