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
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 then 10 will have precedence over 2. Here is the example that does not sort well
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: