V
vunet.us
Could someone show how to sort my hash by values (primary sorting) and
then by key for the same values:
%grades = (
0 => 70,
1 => 50,
6 => 90,
5 => 90,
4 => 90,
);
I want to see:
1 => 50
0 => 70
4 => 90
5 => 90
6 => 90
Thank you
then by key for the same values:
%grades = (
0 => 70,
1 => 50,
6 => 90,
5 => 90,
4 => 90,
);
I want to see:
1 => 50
0 => 70
4 => 90
5 => 90
6 => 90
Thank you