From 55061be320841be671beba89274afcb09341e553 Mon Sep 17 00:00:00 2001 From: Aryaz Eghbali <64126826+AryazE@users.noreply.github.com> Date: Wed, 28 Aug 2024 18:03:02 +0200 Subject: [PATCH] Modified to inplace sort (#153) --- clodius/cli/aggregate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clodius/cli/aggregate.py b/clodius/cli/aggregate.py index 6e8a362..9def0d4 100644 --- a/clodius/cli/aggregate.py +++ b/clodius/cli/aggregate.py @@ -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 = []