Task: Sort an Array of Hashes in Descending Order in Ruby
Task: Sort an Array of Hashes in Descending Order in Ruby: a task in Terminal-Lego-15k (Harbor dataset). You need to write a Ruby script that sorts an array of hashes in descending order based on the value of the :bar key in each hash.
The task
You need to write a Ruby script that sorts an array of hashes in descending order based on the value of the `:bar` key in each hash.
Part of PrimeIntellect/Terminal-Lego-15k.