Skip to content

Instantly share code, notes, and snippets.

@dariuszpiwowarski
Created December 1, 2012 18:19
Show Gist options
  • Save dariuszpiwowarski/4183702 to your computer and use it in GitHub Desktop.
Save dariuszpiwowarski/4183702 to your computer and use it in GitHub Desktop.
Sortih hash
{1=>
[[34,
{"rankings"=>[1, 2, 3, 3, 1, 6, 5],
"m"=>3,
"s"=>20,
"highest_number_of_marks"=>5}],
[55,
{"rankings"=>[3, 3, 1, 1, 2, 5, 6],
"m"=>3,
"s"=>20,
"highest_number_of_marks"=>5}],
[66,
{"rankings"=>[2, 4, 4, 4, 3, 3, 3],
"m"=>3,
"s"=>22,
"highest_number_of_marks"=>4}],
[99,
{"rankings"=>[1, 1, 1, 3, 3, 3, 5],
"m"=>3,
"s"=>24,
"highest_number_of_marks"=>6}],
[100,
{"rankings"=>[9, 9, 9, 3, 3, 3, 3],
"m"=>3,
"s"=>24,
"highest_number_of_marks"=>4}]],
6=>
[[68,
{"rankings"=>[5, 1, 2, 2, 4, 4, 4],
"m"=>4,
"s"=>34,
"highest_number_of_marks"=>6}]],
7=>
[[67,
{"rankings"=>[4, 5, 5, 5, 6, 2, 2],
"m"=>5,
"s"=>46,
"highest_number_of_marks"=>6}]],
8=>
[[69,
{"rankings"=>[6, 6, 6, 6, 5, 1, 1],
"m"=>6,
"s"=>62,
"highest_number_of_marks"=>7}]]}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment