From 26d80244024ca7727a9225026d665e911b9df2d6 Mon Sep 17 00:00:00 2001 From: Keith Rothman <537074+litghost@users.noreply.github.com> Date: Thu, 13 Feb 2020 17:11:29 -0800 Subject: [PATCH] Use sort key for sets. Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com> --- utils/xjson.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/xjson.py b/utils/xjson.py index d5b38c4c..43be703e 100755 --- a/utils/xjson.py +++ b/utils/xjson.py @@ -87,7 +87,7 @@ def sort(data): return new_dict elif isinstance(o, set): - return tuple(sorted(o)) + return tuple(sorted(o, key=key)) elif isinstance(o, (tuple, list)): return tuple(o) else: