From 446cc1bb59b2d4f6854e5256f64a252de8bbade3 Mon Sep 17 00:00:00 2001 From: Caroline Russell Date: Sun, 4 Aug 2024 22:20:45 -0400 Subject: [PATCH] Add VDR sort fields. Signed-off-by: Caroline Russell --- custom_json_diff/custom_diff.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_json_diff/custom_diff.py b/custom_json_diff/custom_diff.py index 35527b8..07f3518 100644 --- a/custom_json_diff/custom_diff.py +++ b/custom_json_diff/custom_diff.py @@ -147,7 +147,7 @@ def load_json(json_file: str, options: Options) -> FlatDicts | BomDicts: logger.error("Invalid JSON: %s", json_file) sys.exit(1) if options.bom_diff: - data = sort_dict_lists(data, ["url", "content", "ref", "name", "value"]) + data = sort_dict_lists(data, ["bom-ref", "id", "url", "content", "ref", "name", "value"]) data = filter_dict(data, options).to_dict(unflat=True) return BomDicts(options, json_file, data, {}) return filter_dict(data, options)