{"id":"sorting-problems-use-tuple-keys","text":"Multi-criteria sorting problems in this repo consistently use Python's tuple sort keys (e.g., `(freq[x], -x)`, `(bin(x).count('1'), x)`) with lexicographic comparison rather than custom comparators via `functools.cmp_to_key`.","truth_value":"IN","source":"entries/2026/06/06/sort-array-by-increasing-frequency-solution.md","source_url":"","source_hash":"","justifications":[],"dependents":[],"metadata":{},"created_at":"","updated_at":"","reviewed_at":"","verified_at":"","retracted_at":"","explanation":{"steps":[{"node":"sorting-problems-use-tuple-keys","truth_value":"IN","reason":"premise"}]}}