Skip to content

Commit

Permalink
Modified to inplace sort (#153)
Browse files Browse the repository at this point in the history
  • Loading branch information
AryazE authored Aug 28, 2024
1 parent de67e9d commit 55061be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clodius/cli/aggregate.py
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ def line_to_dict(line):

tile_counts = col.defaultdict(lambda: col.defaultdict(lambda: col.defaultdict(int)))
# Sort from high to low importance
entries = sorted(entries, key=lambda x: -x["importance"])
entries.sort(key=lambda x: -x["importance"])

interval_inserts = []
position_index_inserts = []
Expand Down

0 comments on commit 55061be

Please sign in to comment.