RE: RFC 124 (v1) Sort order for any hash

[email protected] ("Brust, Corwin")
Newsgroups perl.perl6.language.objects
Message-ID <[email protected]>
<snip>
-----Original Message-----
From: David L. Nicol [mailto:[email protected]]
How about
	
	%students : ( sort = $$students{^1}{GPA} <=> $$students{^0}{GPA} });

</snip>

Ohhhh, this is cool.

<snip>
-----Original Message-----
	my %students : sorted( $ME{^1}{GPA} <=> $ME{^0}{GPA} );
</snip>

And this is even cooler!

-Corwin
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.