Task: Fix JavaScript Array Numeric Sorting
Task: Fix JavaScript Array Numeric Sorting: a task in Terminal-Lego-15k (Harbor dataset). JavaScript's default Array.sort() method converts elements to strings and sorts them lexicographically (alphabetically). This causes incorrect sorting for numeric arrays.
The task
JavaScript's default `Array.sort()` method converts elements to strings and sorts them lexicographically (alphabetically). This causes incorrect sorting for numeric arrays.
Part of PrimeIntellect/Terminal-Lego-15k.