We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sorted()
As pointed on #82 (comment), the sorting of lists are not respecting stability or comparison of types:
$ python -c 'print sorted([1,1.0,2,2.0], reverse=True)' [2, 2.0, 1, 1.0] $ grumpy -c 'print sorted([1,1.0,2,2.0], reverse=True)' [2.0, 2, 1.0, 1]
The implementation should be checked.
The text was updated successfully, but these errors were encountered:
Problem is in current reverse option implementation. It should not be implemented as reversed(sorted(l)), but as negation of comparison function.
reverse
reversed(sorted(l))
Sorry, something went wrong.
No branches or pull requests
As pointed on #82 (comment), the sorting of lists are not respecting stability or comparison of types:
The implementation should be checked.
The text was updated successfully, but these errors were encountered: