Skip to content
New issue

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

Add a "versorted" method #11

Closed
SethMMorton opened this issue Jun 27, 2014 · 2 comments
Closed

Add a "versorted" method #11

SethMMorton opened this issue Jun 27, 2014 · 2 comments
Assignees

Comments

@SethMMorton
Copy link
Owner

I want to make it more clear to users that in some cases, using natsort directly with the default number_type value can give unexpected results when sorting version numbers. To achieve this, I would like to introduce a versorted function which will be a wrapper for natsorted(..., number_type=None, signed=False, noexp=True). This has the added benefit of being less typing for the common use case of sorting version numbers.

@SethMMorton
Copy link
Owner Author

Completed on b0e30c0.

@SethMMorton
Copy link
Owner Author

Hello from the future. This function is now deprecated as the default algorithm for natsort now does this correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant