HF RL Explorer

Task: Sort an Array of Hashes by a Value in Ruby

Task: Sort an Array of Hashes by a Value in Ruby: a task in Terminal-Lego-15k (Harbor dataset). In Ruby, the sort by method returns a new sorted array rather than modifying the original array in place. A common mistake is to call sort by without capturing or using its return value.

The task

In Ruby, the `sort_by` method returns a **new** sorted array rather than modifying the original array in place. A common mistake is to call `sort_by` without capturing or using its return value.

Part of PrimeIntellect/Terminal-Lego-15k.