mirror of https://github.com/openXC7/prjxray.git
Use sort key for sets.
Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
This commit is contained in:
parent
822a61e2f6
commit
26d8024402
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in New Issue