Sort stability: Difference between revisions

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