HF RL Explorer

PHP Array Multi-Field Sorting Task

PHP Array Multi-Field Sorting Task: a task in Terminal-Lego-15k (Harbor dataset). You need to write a PHP script that sorts a multi-dimensional array by two field values in ascending order. The sorting should work similar to SQL's ORDER BY field1 ASC, field2 ASC clause.

The task

You need to write a PHP script that sorts a multi-dimensional array by two field values in ascending order. The sorting should work similar to SQL's `ORDER BY field1 ASC, field2 ASC` clause.

Part of PrimeIntellect/Terminal-Lego-15k.