Anonymous user
Sort stability: Difference between revisions
→{{header|Perl 6}}: fix index
(→{{header|Perl 6}}: Marked incorrect, sorry. The demonstration would require sorting on the second, not the first element.) |
(→{{header|Perl 6}}: fix index) |
||
Line 154:
Short demonstration for sorting only on the first item of each array:
<lang perl6>
use v6;
Line 164:
;
.say for @cities.sort: { .[
</lang>
|