Skip to content

Instantly share code, notes, and snippets.

@euqueme
Created October 25, 2019 17:18
Show Gist options
  • Save euqueme/2d4280311890593e04377c02bee24131 to your computer and use it in GitHub Desktop.
Save euqueme/2d4280311890593e04377c02bee24131 to your computer and use it in GitHub Desktop.
ex = bubble_sort_by(["hi","hello","hey"]) do |left,right| left.length - right.length end
puts ex
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment