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
key=
The first thing I tried to do was to sort a list of objects by their name.
x = natsorted(y, key=lambda o: o.name)
I think this would be a useful addition. The only change that's needed is that natsorted should pass key=lambda o: natsorted(key(o)) to sorted.
natsorted
key=lambda o: natsorted(key(o))
sorted
The text was updated successfully, but these errors were encountered:
I have added this feature in the newest update, version 2.2.0. Thanks for your suggestion!
Sorry, something went wrong.
🤘 :)
No branches or pull requests
The first thing I tried to do was to sort a list of objects by their name.
I think this would be a useful addition. The only change that's needed is that
natsorted
should passkey=lambda o: natsorted(key(o))
tosorted
.The text was updated successfully, but these errors were encountered: