Spaces, symbols and non-printable characters are only considered for splitting the string into its parts but not for sorting. For instance foo-bar-42 is broken in three substrings foo, bar and 42 and after that the dashes are ignored.For the examples you give the sort order would then be:
| P | 007 | B | YUM |
| P | 007 | YUM |
| P | 007 | Yum | |
| P | 007 | b | Yum |
| P | 007 | b | yum |
| P | 007 | yum |
In reply to Re: Sort::Key::Natural sorting discrepancy
by tangent
in thread Sort::Key::Natural sorting discrepancy
by cr8josh
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |