Use sort key for sets.

Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
This commit is contained in:
Keith Rothman 2020-02-13 17:11:29 -08:00
parent 822a61e2f6
commit 26d8024402
1 changed files with 1 additions and 1 deletions

View File

@ -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: