You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
sandro
changed the title
Choose sorts numbered options strangely
Numbered options sorting strangely with ChooseApr 14, 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
The text was updated successfully, but these errors were encountered: