Task: Pythonic Sorting of Named Tuples by Field Name
Task: Pythonic Sorting of Named Tuples by Field Name: a task in Terminal-Lego-15k (Harbor dataset). Write a Python script that demonstrates the most Pythonic way to sort a list of namedtuples by different field names, without relying on remembering numeric indices.
The task
Write a Python script that demonstrates the most Pythonic way to sort a list of namedtuples by different field names, without relying on remembering numeric indices.
Part of PrimeIntellect/Terminal-Lego-15k.