diff --git a/bin/cli.py b/bin/cli.py index 92267b1..f721c1d 100644 --- a/bin/cli.py +++ b/bin/cli.py @@ -302,11 +302,9 @@ def add(t: str, reason: str, score: int) -> None: ranked = sorted( [(t, reason, score) for t, (reason, score) in best.items()], - key=lambda x: (-x[2], x[0]) + key=lambda x: (x[0] not in supported_input_types, -x[2], x[0]) ) - ranked.sort(key=lambda x: (x[0] not in supported_input_types, -x[2], x[0])) - return [(t, reason) for t, reason, _score in ranked]