Skip to content

Commit

Permalink
fix: Limit sort to Keys only
Browse files Browse the repository at this point in the history
  • Loading branch information
YuHoYe authored and harrtho committed Nov 13, 2023
1 parent 7108611 commit 343f6dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion workflow/workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -2328,7 +2328,7 @@ def filter(self, query, items, key=lambda x: x, ascending=False,
(item, score, rule)))

# sort on keys, then discard the keys
results.sort(reverse=ascending)
results.sort(key=lambda r: r[0], reverse=ascending)
results = [t[1] for t in results]

if min_score:
Expand Down

0 comments on commit 343f6dd

Please sign in to comment.