From 696010c7d0e1a8646767e7685be98361803f4df0 Mon Sep 17 00:00:00 2001 From: jakub-nt <175944085+jakub-nt@users.noreply.github.com> Date: Wed, 27 Nov 2024 16:59:02 +0100 Subject: [PATCH] Fix bug in VCF data sorting Signed-off-by: jakub-nt <175944085+jakub-nt@users.noreply.github.com> --- cfbs/masterfiles/analyze.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cfbs/masterfiles/analyze.py b/cfbs/masterfiles/analyze.py index 86867d9..48d329f 100644 --- a/cfbs/masterfiles/analyze.py +++ b/cfbs/masterfiles/analyze.py @@ -87,8 +87,8 @@ def finalize_vcf(versions_dict, checksums_dict, files_dict): # sort version numbers, in decreasing order versions_dict["versions"] = OrderedDict( sorted( - versions_dict["versions"].items(), - key=lambda p: (version_as_comparable_list(p[0]), p[1]), + working_dict.items(), + key=lambda p: version_as_comparable_list(p[0]), reverse=True, ) )