Ruby - Enumerable and Collection Processing
What will be printed by this Ruby code?
data = [{score: 10}, {score: 5}, {score: 20}]
sorted = data.sort_by { |d| -d[:score] }
puts sorted.map { |d| d[:score] }.join(", ")