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

Numbered options sorting strangely with Choose #6

Open
sandro opened this issue Apr 13, 2017 · 0 comments
Open

Numbered options sorting strangely with Choose #6

sandro opened this issue Apr 13, 2017 · 0 comments

Comments

@sandro
Copy link

sandro commented Apr 13, 2017

When providing Choose a list of keys incrementing from 1-10, 10 becomes the second option in the choice list (instead of two). I believe this is the sort order used by sort.Strings. It'd be great if Choose handled integer keys better, or maybe didn't sort the map at all. Further, perhaps there could be another function like Choose that takes an array of strings and automatically prints incrementing numbers as the choice.

Thanks

@sandro sandro changed the title Choose sorts numbered options strangely Numbered options sorting strangely with Choose Apr 14, 2017
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

1 participant