Bug#163696: ITP: libsort-versions-perl -- Perl module for sorting of revision (and similar) numbers
Package: wnpp
Version: N/A; reported 2002-10-07
Severity: wishlist
* Package name : libsort-versions-perl
Version : 1.4
Upstream Author : Kenneth J. Albanowski
* URL : http://www.cpan.org/modules/by-module/Sort/
* License : Same as Perl
Description : Perl module for sorting of revision (and similar) numbers
Copyright statement:
All files in this package are Copyright (c) 1996, Kenneth J. Albanowski.
All rights reserved. This program is free software; you can
redistribute it and/or modify it under the same terms as Perl itself.
Full Description:
This is the CPAN Perl module Sort::Versions.
This module allows easy sorting (via comparisons) of mixed text
and numeric strings, similar to the complex "version numbers" that
many revision control packages and shared library systems use. For
an explanation of the algorithm, it's easiest to look at these
examples:
1.1 < 1.2
1.1a < 1.2
1.1 < 1.1.1
1.1 < 1.1a
1.1.a < 1.1a
1 < a
a < b
1 < 2
(special handling for leading zeros)
0002 < 1
1.06 < 1.5
(a hyphen binds looser than a period)
1-1 < 1-2
1-2 < 1.2
-- System Information
Debian Release: 3.0
Architecture: i386
Kernel: Linux skyjammer 2.2.19pre17 #1 Tue Mar 13 22:37:59 EST 2001 i586
Locale: LANG=en, LC_CTYPE=en_US
Reply to: