Skip to content

Instantly share code, notes, and snippets.

@hrstt
Created June 25, 2011 13:45
Show Gist options
  • Save hrstt/1046504 to your computer and use it in GitHub Desktop.
Save hrstt/1046504 to your computer and use it in GitHub Desktop.
some_array.sort_by {|elem|
[elem[:attribute_a], elem[:attribute_b]]
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment