Skip to content

Commit

Permalink
Sorting subkeys fixing also needs to use humnan sorting
Browse files Browse the repository at this point in the history
  • Loading branch information
Mab879 committed Jul 1, 2024
1 parent 85483cd commit 3d8abf2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/fix_rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ def fix_int_reference(file_contents, yaml_contents):


def sort_rule_subkeys(file_contents, yaml_contents):
return ssg.rule_yaml.sort_section_keys(None, file_contents, TO_SORT)
return ssg.rule_yaml.sort_section_keys(None, file_contents, TO_SORT, sort_func=_human_sort)


def _fixed_file_contents(path, file_contents, product_yaml, func):
Expand Down

0 comments on commit 3d8abf2

Please sign in to comment.