-
Notifications
You must be signed in to change notification settings - Fork 441
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
sortAlpha does not work for list of numbers #362
Comments
This is the correct intended behavior. In order to get the behavior you are seeking, there would need to be a |
Here's a workaround for Helm charts until #392 is merged:
Can be used like
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
I was trying to sort a list of int with
sortAlpha
and I realized it does not sort it correctly and I found out that it is because of this line https://github.com/Masterminds/sprig/blob/master/list.go#L238 which first converts it to string and then sort it. This is wrong behaviour as it should sort it in the type because then10
will have precedence over2
. Here is the example that does not sort wellNote: I am using it in the helm chart
The output is
but it should be
The text was updated successfully, but these errors were encountered: