HF RL Explorer

Task: Fix Array Sorting Error with Read-Only Objects

Task: Fix Array Sorting Error with Read-Only Objects: a task in Terminal-Lego-15k (Harbor dataset). You are working with a JavaScript application that stores an array of character objects in a Redux-like state (immutable/frozen). When attempting to sort the array of objects by their speed stat in…

The task

You are working with a JavaScript application that stores an array of character objects in a Redux-like state (immutable/frozen). When attempting to sort the array of objects by their `speed` stat in descending order, the following error occurs:

Part of PrimeIntellect/Terminal-Lego-15k.