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

Case Insensitive Sorting #18

Open
evanlemke opened this issue Apr 1, 2015 · 3 comments
Open

Case Insensitive Sorting #18

evanlemke opened this issue Apr 1, 2015 · 3 comments

Comments

@evanlemke
Copy link

Would it be possible to add a flag that allows for case case insensitive sorting

@aried3r
Copy link
Contributor

aried3r commented Jul 8, 2016

I'd also be interested in this.

@Kris-LIBIS
Copy link

You can do that:

Naturally.sort_by_block(list) { |x| x.downcase }

@aried3r
Copy link
Contributor

aried3r commented Nov 20, 2016

@Kris-LIBIS, thanks. I'm already using code similar to the one you proposed, but I think I should have been more clear. Ideally I want this to be guaranteed to be a stable sort and integrated into this gem.

But thinking about it, I might have to test this myself if this isn't already the case (and there's the subjective (?) question about how case insensitive sorting should work).

Anyway, thanks for your reply!

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

No branches or pull requests

3 participants