Skip to content

Instantly share code, notes, and snippets.

@mkaschenko
Last active September 27, 2015 18:58
Show Gist options
  • Select an option

  • Save mkaschenko/1317036 to your computer and use it in GitHub Desktop.

Select an option

Save mkaschenko/1317036 to your computer and use it in GitHub Desktop.
sort by two parameters
sort_by { |x| [x.a, x.b] }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment