We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0939457 commit 1c289d1Copy full SHA for 1c289d1
sortingx/_utils.py
@@ -19,7 +19,7 @@ def generate(array: Iterable, key: Callable=None) -> list:
19
compare = ([[value] for value in compare] if compare and compare[0] is not list else compare) if key != None else array
20
return compare
21
22
-def core(left: list, right: list, key: Callable=None, reverse: bool=False) -> bool:
+def core(left: Iterable, right: Iterable, key: Callable=None, reverse: bool=False) -> bool:
23
if key == None:
24
return left < right if reverse else left > right
25
for index in range(0, len(left)):
0 commit comments