# New Ticket Created by  Itsuki Toyota 
# Please include the string:  [perl #131222]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=131222 >


See the following result:

$ perl6 -e '["1:0.470572470261861", "2:0.579981821025709"]>>.split(":", 
:skip-empty).sort({ $^b[0] <=> $^a[0] }).perl.say;'
(Seq.new-consumed(), Seq.new-consumed()).Seq


I think if sort method cannot look (i.e. consume) a Nth-indexed value (e.g. 
$^b[0], $^b[1], ...) and this behavior is a specced one, it should return a 
warning message.


$ perl6 --version
This is Rakudo version 2017.03-217-ge681498 built on MoarVM version 
2017.03-115-ge8231a3
implementing Perl 6.c.

Reply via email to