Commit 468b85b6 authored by Bruno Duyé's avatar Bruno Duyé

Sort category_tree

parent 9566f121
Pipeline #5892 failed with stage
in 2 minutes and 35 seconds
......@@ -126,11 +126,11 @@ def main():
category_tree.append({
'code': appendix_code,
'name': appendix_dict['name'],
'children': category_tree_appendix_datasets
'children': sorted(category_tree_appendix_datasets, key=lambda e: e['name'])
})
# Write categories_tree.json file
write_json_file(os.path.join(target_dir, 'categories_tree.json'), category_tree)
write_json_file(os.path.join(target_dir, 'categories_tree.json'), sorted(category_tree, key=lambda e: e['name']))
log.info('\nEND')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment