Skip to content

Commit

Permalink
Update utils.py
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrilito1 committed Oct 1, 2024
1 parent b9e7586 commit 586c164
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/tirith/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,7 @@ def sort_collections(inputs):
elif isinstance(inputs, list):
if len(inputs) == 0:
return inputs
if (
isinstance(inputs[0], str)
or isinstance(inputs[0], float)
or isinstance(inputs[0], int)
or isinstance(inputs[0], bool)
):
if isinstance(inputs[0], (str, float, int, bool)):
inputs = sorted(inputs)
return inputs
else:
Expand Down

0 comments on commit 586c164

Please sign in to comment.