Task: Using a Comparator Function to Sort in Python
Task: Using a Comparator Function to Sort in Python: a task in Terminal-Lego-15k (Harbor dataset). Write a Python script that sorts dictionary entries using a legacy comparator function. The comparator function takes two arguments (old-style comparison), but Python's sorted() function with key=…
The task
Write a Python script that sorts dictionary entries using a legacy comparator function. The comparator function takes two arguments (old-style comparison), but Python's `sorted()` function with `key=` expects a single-argument function. You need to bridge this gap without modifying the comparator function.
Part of PrimeIntellect/Terminal-Lego-15k.