Last active
September 27, 2015 18:58
-
-
Save mkaschenko/1317036 to your computer and use it in GitHub Desktop.
sort by two parameters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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