I guess everyone knows that feeling when you struggle with a codewars kata, create (or even not!) a looong solution, then you check the solutions of of others and go whaaaaaaaat -- they did it in one line?
This is how I felt today and this is how I refreshed my memory of Ruby's sort_by
method.