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)