The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Sort::Sub::last_num_in_text - Sort by last number found in text or (if no number is found) ascibetically

VERSION

This document describes version 0.002 of Sort::Sub::last_num_in_text (from Perl distribution Sort-Sub-num_in_text), released on 2016-12-16.

DESCRIPTION

The generated sort routine will sort by last number (sequence of [0-9]) found in text or (f no number is found in text) ascibetically. Items that have a number will sort before items that do not.

This is nifty for something like (sortsub is CLI front-end for Sort::Sub):

 % ls
 christophe willem - cafeine (2009)/
 christophe willem - inventaire (2007)/
 christophe willem - parait-il (2014)/
 christophe willem - prismophonic (2011)/

 % ls | sortsub last_num_in_text
 christophe willem - inventaire (2007)/
 christophe willem - cafeine (2009)/
 christophe willem - prismophonic (2011)/
 christophe willem - parait-il (2014)/

ENVIRONMENT

HOMEPAGE

Please visit the project's homepage at https://metacpan.org/release/Sort-Sub-num_in_text.

SOURCE

Source repository is at https://github.com/perlancar/perl-Sort-Sub-num_in_text.

BUGS

Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=Sort-Sub-num_in_text

When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.

SEE ALSO

AUTHOR

perlancar <perlancar@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2016 by perlancar@cpan.org.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.