Guest User

Untitled

a guest
Feb 16th, 2019
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.07 KB | None | 0 0
  1. arr.sort_by { |e| e.join().to_i }
  2.  
  3. #=> [[0, 1], [1, 2], [2, 1], [2, 3]]
Add Comment
Please, Sign In to add comment