> So maybe we have some or all of:
> .keys .sortkeys
> .values .sortvalues
> .kv .sortkv
> .pairs .sortpairs
> Possible variations: .skeys, .ordkeys, etc. Also could flip the
> default and make .keys sort by default and then you use .rawkeys to get
> unordered--shades of PHP.
Taking a page from Template Toolkit.
.keys # same as perl5
.sort # the sorted keys
I know that it isn't quite parallel with Array.sort and it doesn't provide
for .sortkv or .sort pairs, but it might be an option.