Sort map by its value of type int

https://play.golang.org/p/JPOsCRX7ejW
I’m not sure what i did wrong. The results is supposed to be sorted, but that aint the case

1 Like

This does the trick
https://play.golang.org/p/hqqf5aoZAD7

2 Likes

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.