HF RL Explorer

Task: Sorting a Python List by Two Fields

Task: Sorting a Python List by Two Fields: a task in Terminal-Lego-15k (Harbor dataset). You need to write a Python script that reads data from a CSV file and sorts it by multiple criteria. The script should demonstrate how to sort a list by two fields: first by the primary field, and then by the…

The task

You need to write a Python script that reads data from a CSV file and sorts it by multiple criteria. The script should demonstrate how to sort a list by two fields: first by the primary field, and then by the secondary field when the primary field values are equal.

Part of PrimeIntellect/Terminal-Lego-15k.