Skip to content
Snippets Groups Projects
Commit 2b26a1c1 authored by Mohamed, Fawzi Roberto (fawzi)'s avatar Mohamed, Fawzi Roberto (fawzi)
Browse files

fix sorting for python 3

parent 164b681f
No related branches found
No related tags found
No related merge requests found
......@@ -18,4 +18,4 @@ for f in glob.glob("../*/*.demoinfo.yaml"):
})
except:
logging.exception("failure for file %s",f)
json.dump({'data':sorted(data)}, sys.stdout, indent = 2, sort_keys=True)
json.dump({'data':sorted(data, key=lambda x: json.dumps(x, sort_keys=True))}, sys.stdout, indent = 2, sort_keys=True)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment