Inconsistency in the statement
There seems to be an inconsistency between the sorting rules and the expected result:
cryptic_sorter(["aaa", "bbb", "AAA", "BBB"])
# Expected by the exercise:
["AAA", "aaa", "BBB", "bbb"]
The exercise states that letters are compared case-insensitively. Therefore:
"aaa".lower() == "AAA".lower()
"bbb".lower() == "BBB".lower()
These should be considered equal, so the original order should be preserved.
The expected result should therefore be:
["aaa", "AAA", "bbb", "BBB"]
Inconsistency in the statement
There seems to be an inconsistency between the sorting rules and the expected result:
The exercise states that letters are compared case-insensitively. Therefore:
These should be considered equal, so the original order should be preserved.
The expected result should therefore be: