diff options
author | Baptiste Daroussin <bapt@FreeBSD.org> | 2015-03-02 23:51:49 +0000 |
---|---|---|
committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2015-03-02 23:51:49 +0000 |
commit | 5d6c298e2eec1257cdc60c82aca077f50dbcb004 (patch) | |
tree | 5dedf0bd3fdc852ba33335f26c7eb6c2806c462c /textproc/p5-Sort-Naturally/pkg-descr | |
parent | e5add27dcd8db707209b93dbb742ac0b73a027a0 (diff) |
Remove Author from pkg-descr and white space fixes
Notes
Notes:
svn path=/head/; revision=380311
Diffstat (limited to 'textproc/p5-Sort-Naturally/pkg-descr')
-rw-r--r-- | textproc/p5-Sort-Naturally/pkg-descr | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/textproc/p5-Sort-Naturally/pkg-descr b/textproc/p5-Sort-Naturally/pkg-descr index f7d3641ee3b6..9926f89b419d 100644 --- a/textproc/p5-Sort-Naturally/pkg-descr +++ b/textproc/p5-Sort-Naturally/pkg-descr @@ -5,24 +5,23 @@ lexically. This is the way I define natural sorting: - * Non-numeric word-character substrings are sorted lexically, + * 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", + * 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 + * 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 + * 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, + * 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+/ -- + * 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. -Author: Sean M. Burke <sburke@cpan.org> WWW: http://search.cpan.org/dist/Sort-Naturally/ |