Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
Perl's built-in sort operator sorts text strings in their natural text order, by default.[1]
[1] My friends call that the "ASCIIbetical" ordering. Normally modern Perl doesn't use ASCII; instead, it uses a default sort order, depending on the current locale and character set; see the perllocale (not perllocal!) manpage.
This is fine if you want to sort text strings: