Commit ae8e6593 authored by Hermann Krumrey's avatar Hermann Krumrey

Correctly sort entries in remaining list

parent f8f1dcf7
......@@ -58,7 +58,12 @@ def print_remaining_support_levels(no_byleth: bool, multi_line: bool):
for rank, (character, total, remaining) in enumerate(ranking):
supports = []
sorted_remaining = []
for support, diff in remaining.items():
sorted_remaining.append((support, diff))
sorted_remaining.sort(key=lambda x: x[1], reverse=True)
for support, diff in sorted_remaining:
if diff == 0:
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment