Perl 6 Perl 6 today #24

Sorting a hash

By default, hashes sort by key:

> my %h = <apple 4 cherry 7 banana -6>;
> .say for %h.sort;
apple   4
banana  -6
cherry  7
Copyright © 2009
http://www.pmichaud.com/2009/pres/