fix sorting for python 3

parent 164b681f
......@@ -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)
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