capafmt: order meta/features consistently

This commit is contained in:
William Ballenthin
2020-06-21 12:01:12 -06:00
parent 3bc6c5805f
commit aa357855b8

View File

@@ -547,6 +547,9 @@ class Rule(object):
del m[k]
m[k] = v
move_to_end(definition["rule"], "meta")
move_to_end(definition["rule"], "features")
for key in COMMON_KEYS:
if key in meta:
move_to_end(meta, key)