in reply to Re^3: Spoiled by Perl (sorting sugar)
in thread Spoiled by Perl
> The dispatcher does that by finding the appropriate multi-sub that implements the actual comparison.
ehm ... if I have an array with numbers and strings it will implicitly decide based on the type of $a and $b which comparison to apply?
> Rakus Str class is fully Unicode aware and by default sorts characters on the numeric value of the codepoint.
I'm not sure if that's sufficient to handle different standards.
E.g. the telephone book in Germany has another sorting than the dictionaries.
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
clearer rewording
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^5: Spoiled by Perl (sorting sugar)
by raiph (Deacon) on Dec 22, 2021 at 01:36 UTC |