3 ms·
> The sort package has addressed this concern. How? Looking at the documentation, you still have to write at least three functions for each type you want to so
by parenthephobia 9y ago
> The sort package has addressed this concern.
How? Looking at the documentation, you still have to write at least three functions for each type you want to sort.
- randomdata 9y agoAn example from the docs: sort.Slice(people, func(i, j int) bool { return people[i].Name < people[j].Name })