Port details on branch 2022Q3 |
- p5-Sort-Naturally Sort lexically, but sort numeral parts numerically
- 1.03_1 textproc =4 1.03_1Version of this port present on the latest quarterly branch.
- Maintainer: perl@FreeBSD.org
- Port Added: 2005-02-15 17:18:50
- Last Update: 2022-09-07 21:58:51
- Commit Hash: fb16dfe
- People watching this port, also watch:: p5-Readonly, pcre, screen, p5-Algorithm-C3, p5-Error
- Also Listed In: perl5
- License: ART10 GPLv1+
- WWW:
- https://metacpan.org/release/Sort-Naturally
- Description:
- 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:
* The start of a string is exceptional: leading non-\W (non-word,
non-digit) components 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.
- ¦ ¦ ¦ ¦
- Manual pages:
- FreshPorts has no man page information for this port.
- pkg-plist: as obtained via:
make generate-plist - Dependency lines:
-
- p5-Sort-Naturally>0:textproc/p5-Sort-Naturally
- To install the port:
- cd /usr/ports/textproc/p5-Sort-Naturally/ && make install clean
- To add the package, run one of these commands:
- pkg install textproc/p5-Sort-Naturally
- pkg install p5-Sort-Naturally
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.- PKGNAME: p5-Sort-Naturally
- Flavors: there is no flavor information for this port.
- distinfo:
- SHA256 (Sort-Naturally-1.03.tar.gz) = eaab1c5c87575a7826089304ab1f8ffa7f18e6cd8b3937623e998e865ec1e746
SIZE (Sort-Naturally-1.03.tar.gz) = 11150
Packages (timestamps in pop-ups are UTC):
- Dependencies
- NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
- Build dependencies:
-
- perl5>=5.32.r0<5.33 : lang/perl5.32
- Runtime dependencies:
-
- perl5>=5.32.r0<5.33 : lang/perl5.32
- This port is required by:
- for Build
-
- devel/p5-Data-TreeDumper
- dns/p5-Net-DNS-RR-SRV-Helper
- security/clusterssh
- security/kpcli
- sysutils/p5-Rex
-
Deleted ports which required this port:
- for Run
-
- devel/p5-Data-TreeDumper
- devel/p5-Sort-Sub
- dns/p5-Net-DNS-RR-SRV-Helper
- security/clusterssh
- security/kpcli
- sysutils/p5-Rex
-
Deleted ports which required this port:
- * - deleted ports are only shown under the This port is required by section. It was harder to do for the Required section. Perhaps later...
Configuration Options:
- No options to configure
- Options name:
- textproc_p5-Sort-Naturally
- USES:
- perl5
- FreshPorts was unable to extract/find any pkg message
- Master Sites:
|