Skip to content

Instantly share code, notes, and snippets.

@rmw
Created March 12, 2012 03:10
Show Gist options
  • Save rmw/2019479 to your computer and use it in GitHub Desktop.
Save rmw/2019479 to your computer and use it in GitHub Desktop.
Sort a hash by a string
my_hash.sort { |h| h["name"].upcase }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment