note
cog
<code>my @array = map { $hash{$_}->[0] } sort { $a <=> $b } keys %hash;</code>
<p>That's the first solution that comes to my mind. Try reading it backwards:
<p><ul><ol><li>Take the keys of the hash... (<code>keys %hash</code>)</li>
<li>...sort them numerically... (<code>sort { $a <=> $b } ...</code>)</li>
<li>...and get the first element of the array corresponding to each key in the hash... (<code>map { $hash{$_}->[0] } ...</code>) </li></ol>
569938
569938