J'ai un Hash comme celui-ciComment trier pas simple hachage (hachage de hachages)
{ 55 => {:value=>61, :rating=>-147},
89 => {:value=>72, :rating=>-175},
78 => {:value=>64, :rating=>-155},
84 => {:value=>90, :rating=>-220},
95 => {:value=>39, :rating=>-92},
46 => {:value=>97, :rating=>-237},
52 => {:value=>73, :rating=>-177},
64 => {:value=>69, :rating=>-167},
86 => {:value=>68, :rating=>-165},
53 => {:value=>20, :rating=>-45}
}
Comment puis-je trier par : Evaluation? Ou peut-être que je devrais utiliser une structure différente?
probablement intéressant de noter le langage de programmation dans le titre. – danieltalsky