Skip to content

Commit 286d9c7

Browse files
Merge pull request #23 from JakeRoggenbuck/order-searches
Sort numbers
2 parents 9710357 + 08d69c3 commit 286d9c7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

python/draft.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ def open_draft_viewer(outfile_path: str, entries: List[Tuple[int, str]]):
9797
count = str(entry[0]).ljust(5)
9898
order.append((entry, count,))
9999
# Sort by count
100-
order.sort(key=lambda x: x[1], reverse=True)
100+
order.sort(key=lambda x: int(x[1]), reverse=True)
101101

102102
for a, o in enumerate(order):
103103
n = a + 1

0 commit comments

Comments
 (0)