view release on metacpan or search on metacpan
lib/Acme/CPANModules/XSVersions.pm view on Meta::CPAN
{module => 'Readonly', xs_module => 'Readonly::XS'},
{module => 'Ref::Util', xs_module => 'Ref::Util::XS'},
{module => 'Set::IntSpan::Fast', xs_module => 'Set::IntSpan::Fast::XS'},
{module => 'Set::Product', xs_module => 'Set::Product::XS'},
{module=>'SOAP::WSDL::Deserializer::XSD', xs_module=>'SOAP::WSDL::Deserializer::XSD_XS'},
{module => 'Sort::Naturally', xs_module => 'Sort::Naturally::XS'},
{module => 'String::Numeric', xs_module => 'String::Numeric::XS'},
{module => 'Template::Alloy', xs_module => 'Template::Alloy::XS'},
{module => 'Template::Stash', xs_module => 'Template::Stash::XS'},
{module => 'Text::CSV', xs_module => 'Text::CSV_XS'},
# Text::Levenshtein & Text::Levenshtein::XS are different modules
lib/Acme/CPANModules/XSVersions.pm view on Meta::CPAN
Author: L<SWALTERS|https://metacpan.org/author/SWALTERS>
XS module: L<SOAP::WSDL::Deserializer::XSD_XS>
=item L<Sort::Naturally>
Author: L<BINGOS|https://metacpan.org/author/BINGOS>
XS module: L<Sort::Naturally::XS>
=item L<String::Numeric>
Author: L<CHANSEN|https://metacpan.org/author/CHANSEN>
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Acme/DependOnEverything.pm view on Meta::CPAN
use Sort::Key::Top::PP;
use Sort::Maker;
use Sort::Merge;
use Sort::MergeSort;
use Sort::MultipleFields;
use Sort::Naturally;
use Sort::Naturally::ICU;
use Sort::Naturally::XS;
use Sort::Packed;
use Sort::Radix;
use Sort::Rank::v;
use Sort::SQL;
use Sort::strverscmp;
view all matches for this distribution
view release on metacpan or search on metacpan
cpanfile.snapshot view on Meta::CPAN
File::HomeDir 0.91
File::Spec 0
File::Temp 0
Package::Stash 0.3
Scalar::Util 0
Sort::Naturally 0
Term::ANSIColor 3
Test::More 0.88
version 0.77
DateTime-1.06
pathname: D/DR/DROLSKY/DateTime-1.06.tar.gz
cpanfile.snapshot view on Meta::CPAN
ExtUtils::MakeMaker 0
perl 5.006001
Sort-Naturally-1.03
pathname: B/BI/BINGOS/Sort-Naturally-1.03.tar.gz
provides:
Sort::Naturally 1.03
requirements:
ExtUtils::MakeMaker 0
perl 5
String-Approx-3.27
pathname: J/JH/JHI/String-Approx-3.27.tar.gz
view all matches for this distribution
view release on metacpan or search on metacpan
lib/App/ClusterSSH.pm view on Meta::CPAN
}
# if the user has asked for natural sorting we need to include an extra
# module
if ( $self->config()->{'use_natural_sort'} ) {
eval { Module::Load::load('Sort::Naturally'); };
if ($@) {
warn(
"natural sorting requested but unable to load Sort::Naturally: $@\n"
);
}
else {
$sort = sub { Sort::Naturally::nsort(@_) };
}
}
$self->config->dump() if ( $self->options->dump_config );
view all matches for this distribution
view release on metacpan or search on metacpan
t/files/indent.snapshot view on Meta::CPAN
File::HomeDir 0.91
File::Spec 0
File::Temp 0
Package::Stash 0.3
Scalar::Util 0
Sort::Naturally 0
Term::ANSIColor 3
Test::More 0.88
version 0.77
DateTime-1.50
pathname: D/DR/DROLSKY/DateTime-1.50.tar.gz
t/files/indent.snapshot view on Meta::CPAN
Test::More 0
perl 5.006
Sort-Naturally-1.03
pathname: B/BI/BINGOS/Sort-Naturally-1.03.tar.gz
provides:
Sort::Naturally 1.03
requirements:
ExtUtils::MakeMaker 0
perl 5
Specio-0.42
pathname: D/DR/DROLSKY/Specio-0.42.tar.gz
view all matches for this distribution
view release on metacpan or search on metacpan
lib/App/TestOnTap/OrderStrategy.pm view on Meta::CPAN
our $VERSION = '1.001';
my $version = $VERSION;
$VERSION = eval $VERSION;
use List::Util qw(shuffle);
use Sort::Naturally qw(nsort);
# CTOR
#
sub new
{
view all matches for this distribution
view release on metacpan or search on metacpan
}
},
"runtime" : {
"requires" : {
"CPAN::Version" : "0",
"Sort::Naturally" : "0"
}
}
},
"release_status" : "stable",
"resources" : {
view all matches for this distribution
view release on metacpan or search on metacpan
cpanfile.snapshot view on Meta::CPAN
File::HomeDir 0.91
File::Spec 0
File::Temp 0
Package::Stash 0.3
Scalar::Util 0
Sort::Naturally 0
Term::ANSIColor 3
Test::More 0.88
version 0.77
DateTime-1.52
pathname: D/DR/DROLSKY/DateTime-1.52.tar.gz
cpanfile.snapshot view on Meta::CPAN
Exporter 5.57
perl 5.006
Sort-Naturally-1.03
pathname: B/BI/BINGOS/Sort-Naturally-1.03.tar.gz
provides:
Sort::Naturally 1.03
requirements:
ExtUtils::MakeMaker 0
perl 5
Specio-0.46
pathname: D/DR/DROLSKY/Specio-0.46.tar.gz
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Bencher/Scenario/SortSub/naturally.pm view on Meta::CPAN
module => 'Sort::Sub',
code_template => 'sort $Bencher::Scenario::SortSub::naturally::naturally @{<data>}',
result_is_list => 1,
},
{
fcall_template => 'Sort::Naturally::nsort(@{<data>})',
result_is_list => 1,
},
{
name => 'Sort::Naturally::ncmp',
module => 'Sort::Naturally',
code_template => 'sort {Sort::Naturally::ncmp($a, $b)} @{<data>}',
result_is_list => 1,
},
{
fcall_template => 'Sort::Naturally::XS::nsort(@{<data>})',
result_is_list => 1,
},
{
name => 'Sort::Naturally::XS::ncmp',
module => 'Sort::Naturally::XS',
code_template => 'sort {Sort::Naturally::XS::ncmp($a, $b)} @{<data>}',
result_is_list => 1,
},
{
fcall_template => 'Sort::Key::Natural::natsort(@{<data>})',
result_is_list => 1,
lib/Bencher/Scenario/SortSub/naturally.pm view on Meta::CPAN
Version numbers shown below are the versions used when running the sample benchmark.
L<Sort::Key::Natural> 0.04
L<Sort::Naturally> 1.03
L<Sort::Naturally::XS> 0.7.3
L<Sort::Sub> 0.10
=head1 BENCHMARK PARTICIPANTS
lib/Bencher/Scenario/SortSub/naturally.pm view on Meta::CPAN
sort $Bencher::Scenario::SortSub::naturally::naturally @{<data>}
=item * Sort::Naturally::nsort (perl_code)
Function call template:
Sort::Naturally::nsort(@{<data>})
=item * Sort::Naturally::ncmp (perl_code)
Code template:
sort {Sort::Naturally::ncmp($a, $b)} @{<data>}
=item * Sort::Naturally::XS::nsort (perl_code)
Function call template:
Sort::Naturally::XS::nsort(@{<data>})
=item * Sort::Naturally::XS::ncmp (perl_code)
Code template:
sort {Sort::Naturally::XS::ncmp($a, $b)} @{<data>}
=item * Sort::Key::Natural::natsort (perl_code)
lib/Bencher/Scenario/SortSub/naturally.pm view on Meta::CPAN
#table1#
{dataset=>"100items"}
+-----------------------------+-----------+-----------+------------+---------+---------+
| participant | rate (/s) | time (ms) | vs_slowest | errors | samples |
+-----------------------------+-----------+-----------+------------+---------+---------+
| Sort::Naturally::nsort | 578 | 1.73 | 1 | 9.1e-07 | 20 |
| Sort::Key::Natural::natsort | 2000 | 0.5 | 3 | 5.9e-06 | 20 |
| Sort::Naturally::XS::nsort | 7950 | 0.126 | 13.8 | 4.7e-08 | 26 |
| Sort::Sub::naturally | 200000 | 0.005 | 400 | 8.4e-08 | 31 |
| Sort::Naturally::XS::ncmp | 233800 | 0.004277 | 404.5 | 4.6e-11 | 20 |
| Sort::Naturally::ncmp | 235000 | 0.00426 | 406 | 1.7e-09 | 20 |
+-----------------------------+-----------+-----------+------------+---------+---------+
#table2#
{dataset=>"10items"}
+-----------------------------+-----------+-----------+------------+---------+---------+
| participant | rate (/s) | time (μs) | vs_slowest | errors | samples |
+-----------------------------+-----------+-----------+------------+---------+---------+
| Sort::Naturally::nsort | 15000 | 65 | 1 | 1.1e-07 | 20 |
| Sort::Key::Natural::natsort | 18000 | 55 | 1.2 | 8e-08 | 20 |
| Sort::Naturally::XS::nsort | 189260 | 5.2838 | 12.278 | 1.2e-11 | 24 |
| Sort::Naturally::ncmp | 1580000 | 0.633 | 103 | 2e-10 | 21 |
| Sort::Sub::naturally | 1768950 | 0.565308 | 114.758 | 0 | 20 |
| Sort::Naturally::XS::ncmp | 1794000 | 0.5576 | 116.4 | 4.1e-11 | 20 |
+-----------------------------+-----------+-----------+------------+---------+---------+
Benchmark module startup overhead (C<< bencher -m SortSub::naturally --module-startup >>):
#table3#
+---------------------+------------------------------+--------------------+----------------+-----------+------------------------+------------+---------+---------+
| participant | proc_private_dirty_size (MB) | proc_rss_size (MB) | proc_size (MB) | time (ms) | mod_overhead_time (ms) | vs_slowest | errors | samples |
+---------------------+------------------------------+--------------------+----------------+-----------+------------------------+------------+---------+---------+
| Sort::Key::Natural | 1.4 | 4.8 | 19 | 27 | 21.6 | 1 | 6e-05 | 20 |
| Sort::Naturally::XS | 1.4 | 4.7 | 19 | 12 | 6.6 | 2.3 | 1.5e-05 | 21 |
| Sort::Naturally | 1.2 | 4.7 | 16 | 11 | 5.6 | 2.4 | 4.4e-05 | 20 |
| Sort::Sub | 1.2 | 4.7 | 16 | 7.9 | 2.5 | 3.4 | 2e-05 | 20 |
| perl -e1 (baseline) | 0.87 | 4.2 | 16 | 5.4 | 0 | 5 | 1e-05 | 20 |
+---------------------+------------------------------+--------------------+----------------+-----------+------------------------+------------+---------+---------+
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Bio/FastParsers/Roles/Clusterable.pm view on Meta::CPAN
use autodie;
use feature qw(say);
use Carp;
use Sort::Naturally;
use Try::Tiny;
# private attributes
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Bio/MUST/Apps/FortyTwo/AliProcessor.pm view on Meta::CPAN
use Const::Fast;
use File::Basename;
use List::AllUtils qw(first part partition_by pairmap);
use Path::Class qw(file);
use POSIX;
use Sort::Naturally;
use Tie::IxHash;
use Bio::MUST::Core;
use Bio::MUST::Core::Utils qw(:filenames secure_outfile);
use Bio::MUST::Drivers;
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Bio/MUST/Apps/OmpaPa/Roles/Parsable.pm view on Meta::CPAN
use FileHandle;
use List::AllUtils qw(sum);
use Path::Class qw(file);
use POSIX;
use Scalar::Util qw(looks_like_number);
use Sort::Naturally;
use Template;
use Text::Table;
use IO::Prompter [
-verbatim,
view all matches for this distribution
view release on metacpan or search on metacpan
Bio/Assembly/IO.pm view on Meta::CPAN
=head2 _sort
Title : _sort
Usage : @sorted_values = $ass_io->_sort(@values)
Function: Sort a list of values naturally if Sort::Naturally is installed
(nicer), lexically otherwise (not as nice, but safe)
Returns : array of sorted values
Args : array of values to sort
=cut
sub _sort {
my @arr = @_;
my @sorted_arr;
if (eval { require Sort::Naturally }) {
@sorted_arr = Sort::Naturally::nsort( @arr ); # natural sort (better)
} else {
@sorted_arr = sort @arr; # lexical sort (safe)
}
return @sorted_arr;
}
view all matches for this distribution
view release on metacpan or search on metacpan
Set::Scalar
SOAP::Lite - Used for bibliographic queries & XEMBLService modules
Sort::Naturally
Spreadsheet::ParseExcel
Storable - recommended for all bioperl releases after 0.7.2. Used for persistant storage of objects and local file caching
view all matches for this distribution
view release on metacpan or search on metacpan
lib/CLI/Driver/Exec.pm view on Meta::CPAN
use Moose;
use namespace::autoclean;
use Method::Signatures;
use Data::Printer alias => 'pdump';
use Carp;
use Sort::Naturally;
use YAML::Syck;
##############################################################################
# PUBLIC ATTRIBUTES
##############################################################################
view all matches for this distribution
view release on metacpan or search on metacpan
data/tiddlers.json view on Meta::CPAN
"modified": "20260430021612817",
"created": "20240706052320581"
},
{
"created": "20240717002307158",
"text": "\"\"\"\no Author:\n- Ron Savage\n- Melbourne, Victoria, Australia\n- https://metacpan.org/author/RSAVAGE\n- http://savage.net.au/. My Wiki Haven has links to various wikis including this Perl.Wiki.html\n\no V 1.47:\n- 2026-05-31\n- A...
"title": "ChangeLog",
"modified": "20260531011602230"
},
{
"text": "\"\"\"\no See also:\n- BarCodes\n- Chart\n- Chart::Clicker\n- Chart::GGPlot\n- Chart::Plotly\n- Color::Library\n- Convert::Color\n- Imager::Plot\n- VS::Chart\n- ChartingAndPlotting\n- [[Color]]\n- [[Graphs]]\n- PdfStuff\n- PdlLanguag...
data/tiddlers.json view on Meta::CPAN
"title": "SocialMedia",
"modified": "20260309220658292",
"created": "20250422235902545"
},
{
"text": "\"\"\"\no App::subsort:\n- Sort lines of text using Sort::Sub routine\n- Contains App::sortsub\n- Uses Sort::Sub below\n- https://metacpan.org/dist/App-subsort\n- https://sorting.cr.yp.to/ - djbsort homepage\n\no File::Util::Sort:\n-...
"title": "SortModules",
"modified": "20260413222143439",
"created": "20210105062248629"
},
{
view all matches for this distribution
view release on metacpan or search on metacpan
lib/CPAN/Plugin/Sysdeps/Mapping.pm view on Meta::CPAN
[os_freebsd,
[package => 'net-snmp']],
[like_debian,
[package => ['libsnmp-dev', 'snmp-mibs-downloader']]]],
[cpanmod => ['Sort::Naturally::ICU', 'Unicode::ICU::Collator'],
[os_freebsd,
[package => 'icu']], # but Sort::Naturally::ICU build fails
[like_debian,
[package => 'libicu-dev']],
[like_fedora, # Sort::Naturally::ICU builds on centos7 and fedora28, missing further packages on centos6
[package => 'libicu-devel']],
],
[cpanmod => 'Speech::Recognizer::SPX',
[os_freebsd,
view all matches for this distribution
view release on metacpan or search on metacpan
t/share/report/perl5/invalid-version-v.json view on Meta::CPAN
"prerequisites": [
{ "phase": "test_requires", "name": "Test::More", "need": "0.88", "have": "1.302078" },
{ "phase": "requires", "name": "Term::ANSIColor", "need": "3.0", "have": "4.04" },
{ "phase": "requires", "name": "Scalar::Util", "need": "0", "have": "1.47" },
{ "phase": "requires", "name": "version", "need": "0.77", "have": "0.9916" },
{ "phase": "requires", "name": "Sort::Naturally", "need": "0", "have": "1.03" },
{ "phase": "requires", "name": "Package::Stash", "need": "0.30", "have": "0.37" },
{ "phase": "requires", "name": "Carp", "need": "0", "have": "1.40" },
{ "phase": "requires", "name": "Clone::PP", "need": "0", "have": "1.06" },
{ "phase": "requires", "name": "File::HomeDir", "need": "0.91", "have": "1.00" },
{ "phase": "requires", "name": "File::Spec", "need": "0", "have": "3.6301" },
view all matches for this distribution
view release on metacpan or search on metacpan
Revision history for Code-TidyAll-Plugin-SortLines-Naturally
0.000003 2015-09-11 18:55:38-04:00 America/Toronto
- Switches from Sort::Naturally to Unicode::Collate::Locale in order to be
able to force an encoding on the repository. Sort::Naturally isn't
configurable in this way and leads to issues if devs with different
locales start sorting and committing. (Greg Oschwald)
0.000002 2014-08-15 23:32:32EDT-0400 America/Toronto
- dzil tweaks to make CPANTS happier
view all matches for this distribution
view release on metacpan or search on metacpan
"JSON::PP" : "2.00"
}
},
"test" : {
"requires" : {
"Sort::Naturally" : "0",
"Test::Differences" : "0",
"Test::Exception" : "0",
"Test::LeakTrace" : "0",
"Test::Most" : "0"
}
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Convert/Pheno/IO/CSVHandler.pm view on Meta::CPAN
use warnings;
use autodie;
use feature qw(say);
use File::Basename;
use Text::CSV_XS qw(csv);
use Sort::Naturally qw(nsort);
use List::Util qw(any);
use File::Spec::Functions qw(catdir);
use IO::Compress::Gzip qw($GzipError);
use IO::Uncompress::Gunzip qw($GunzipError);
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Data/Printer/Common.pm view on Meta::CPAN
return $string;
}
sub _initialize_nsort {
return 'Sort::Key::Natural' if $INC{'Sort/Key/Natural.pm'};
return 'Sort::Naturally' if $INC{'Sort/Naturally.pm'};
return 'Sort::Key::Natural' if !_tryme('use Sort::Key::Natural; 1;');
return 'Sort::Naturally' if !_tryme('use Sort::Naturally; 1;');
return 'core';
}
sub _nsort {
if (!$nsort_initialized) {
view all matches for this distribution
view release on metacpan or search on metacpan
Convert more types of comparisons to packed-default sorts for speed.
Further investigate the current status of the Sort::Records module.
Add a comparator function for an alpha-numeric-spans sorting model
like Sort::Naturally.
Interface to Sort::PolySort for alternate comparator styles, like
"name" and "usdate".
For non-scalar values, compare referents along the lines of
view all matches for this distribution
view release on metacpan or search on metacpan
problem: it is not recommended to install after installation is complete as
this will not modify the packlist (for uninstalling later)
- sequences, e.g.,
use Sort::Naturally;
nsort grep { $_->basename =~ /^6\.1\./ } @{ Data::TestImage::DB::USC::SIPI->get_installed_images() }
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Data/TreeDumper/Utils.pm view on Meta::CPAN
$VERSION = '0.04';
}
#-------------------------------------------------------------------------------
use Sort::Naturally;
use Check::ISA ;
use Readonly ;
Readonly my $EMPTY_STRING => q{} ;
lib/Data/TreeDumper/Utils.pm view on Meta::CPAN
=back
Any key that doesn't match a regex or a string will automatically be in this category.
Keys are sorted by L<Sort::Naturally>.
B<Returns> - the keys sorted according to the defined categories.
B<See> - I<Filters> in L<Data::TreeDumper>.
lib/Data/TreeDumper/Utils.pm view on Meta::CPAN
sub hash_keys_sorter
{
=head2 hash_keys_sorter()
When no filter is given to L<Data::TreeDumper>, it will sort hash keys using L<Sort::Naturally>. If you create your
own filter or have chaining filters, you will have to do the sorting yourself (if you want keys to be sorted) or you can
use this filter to do the sorting.
# Remove keys starting with A, return in keys in the order the hash returns them
DumpTree($s, 'not sorted', FILTER => \&remove_keys_starting_with_A,) ;
view all matches for this distribution
view release on metacpan or search on metacpan
TreeDumper.pm view on Meta::CPAN
}
use Text::Wrap ;
#use Text::ANSI::Util qw(ta_wrap);
use Class::ISA ;
use Sort::Naturally ;
use constant MD1 => ('MAX_DEPTH' => 1) ;
use constant MD2 => ('MAX_DEPTH' => 2) ;
#-------------------------------------------------------------------------------
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Dist/Zilla/App/Command/distversion.pm view on Meta::CPAN
package Dist::Zilla::App::Command::distversion;
use Capture::Tiny qw/capture capture_stdout/;
use Sort::Naturally qw/nsort/;
use strict;
use warnings;
our $VERSION = '0.03';
view all matches for this distribution
view release on metacpan or search on metacpan
Notes/cpan-namespaces/cpan-namespaces-L1-L2.txt view on Meta::CPAN
Sort::Key
Sort::Maker
Sort::Merge
Sort::MergeSort
Sort::MultipleFields
Sort::Naturally
Sort::Packed
Sort::Radix
Sort::Rank
Sort::SQL
Sort::Sub
view all matches for this distribution
view release on metacpan or search on metacpan
lib/HTML/KhatGallery/Plugin/SortNaturally.pm view on Meta::CPAN
This is a plugin for khatgallery to use Natural sort for index lists.
=cut
use Sort::Naturally;
=head1 OBJECT METHODS
Documentation for developers and those wishing to write plugins.
lib/HTML/KhatGallery/Plugin/SortNaturally.pm view on Meta::CPAN
=head1 REQUIRES
Test::More
HTML::KhatGallery
Sort::Naturally
=head1 INSTALLATION
To install this module, run the following commands:
view all matches for this distribution
view release on metacpan or search on metacpan
cpanfile.snapshot view on Meta::CPAN
File::HomeDir 0.91
File::Spec 0
File::Temp 0
Package::Stash 0.3
Scalar::Util 0
Sort::Naturally 0
Term::ANSIColor 3
Test::More 0.88
version 0.77
Data-UUID-1.224
pathname: R/RJ/RJBS/Data-UUID-1.224.tar.gz
cpanfile.snapshot view on Meta::CPAN
parent 0
strict 0
Sort-Naturally-1.03
pathname: B/BI/BINGOS/Sort-Naturally-1.03.tar.gz
provides:
Sort::Naturally 1.03
requirements:
ExtUtils::MakeMaker 0
perl 5
Sub-Exporter-0.987
pathname: R/RJ/RJBS/Sub-Exporter-0.987.tar.gz
view all matches for this distribution