Catmandu::Fix::sort_field - sort the values of an array
# e.g. tags => ["foo", "bar","bar"] sort_field('tags'); # tags => ["bar","bar","foo"] sort_field('tags',-uniq=>1); # tags => ["bar","foo"] sort_field('tags',-uniq=>1,-reverse=>1); # tags => ["foo","bar"] # e.g. nums => [ 100, 1 , 10] sort_field('nums',-numeric=>1); # nums => [ 1, 10, 100]
Catmandu::Fix
To install Catmandu, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Catmandu
CPAN shell
perl -MCPAN -e shell install Catmandu
For more information on module installation, please visit the detailed CPAN module installation guide.