Index index by Group index by Distribution index by Vendor index by creation date index by Name Mirrors Help Search

perl-Sort-Naturally-1.03-lp152.3.2 RPM for noarch

From OpenSuSE Leap 15.2 for noarch

Name: perl-Sort-Naturally Distribution: openSUSE Leap 15.2
Version: 1.03 Vendor: openSUSE
Release: lp152.3.2 Build date: Fri Sep 20 18:21:40 2019
Group: Development/Libraries/Perl Build host: lamb52
Size: 31510 Source RPM: perl-Sort-Naturally-1.03-lp152.3.2.src.rpm
Packager: https://bugs.opensuse.org
Url: http://search.cpan.org/dist/Sort-Naturally/
Summary: sort lexically, but sort numeral parts numerically
This module exports two functions, 'nsort' and 'ncmp'; they are used in
implementing my idea of a "natural sorting" algorithm. Under natural
sorting, numeric substrings are compared numerically, and other
word-characters are compared lexically.

This is the way I define natural sorting:

* *

  Non-numeric word-character substrings are sorted lexically,
  case-insensitively: "Foo" comes between "fish" and "fowl".

* *

  Numeric substrings are sorted numerically: "100" comes after "20", not
  before.

* *

  \W substrings (neither words-characters nor digits) are _ignored_.

* *

  Our use of \w, \d, \D, and \W is locale-sensitive: Sort::Naturally uses a
  'use locale' statement.

* *

  When comparing two strings, where a numeric substring in one place is
  _not_ up against a numeric substring in another, the non-numeric always
  comes first. This is fudged by reading pretending that the lack of a
  number substring has the value -1, like so:

    foo       =>  "foo",  -1
    foobar    =>  "foo",  -1,  "bar"
    foo13     =>  "foo",  13,
    foo13xyz  =>  "foo",  13,  "xyz"

  That's so that "foo" will come before "foo13", which will come before
  "foobar".

* *

  The start of a string is exceptional: leading non-\W (non-word,
  non-digit) components are are ignored, and numbers come _before_ letters.

* *

  I define "numeric substring" just as sequences matching m/\d+/ --
  scientific notation, commas, decimals, etc., are not seen. If your data
  has thousands separators in numbers ("20,000 Leagues Under The Sea" or
  "20.000 lieues sous les mers"), consider stripping them before feeding
  them to 'nsort' or 'ncmp'.

Provides

Requires

License

Artistic-1.0 or GPL-1.0+

Changelog

* Tue Jun 04 2013 coolo@suse.com
  - updated to 1.03
    * release 1.03 -- modernise the distribution
* Wed Dec 01 2010 coolo@novell.com
  - switch to perl_requires macro
* Fri Aug 20 2010 chris@computersalat.de
  - initial package 1.02
    * created by cpanspec 1.78

Files

/usr/lib/perl5/vendor_perl/5.26.1/Sort
/usr/lib/perl5/vendor_perl/5.26.1/Sort/Naturally.pm
/usr/lib/perl5/vendor_perl/5.26.1/x86_64-linux-thread-multi
/usr/share/doc/packages/perl-Sort-Naturally
/usr/share/doc/packages/perl-Sort-Naturally/ChangeLog
/usr/share/doc/packages/perl-Sort-Naturally/README
/usr/share/man/man3/Sort::Naturally.3pm.gz


Generated by rpm2html 1.8.1

Fabrice Bellet, Tue Apr 9 11:50:38 2024