Hacker News new | ask | show | jobs
by parenthephobia 3046 days 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.

1 comments

An example from the docs:

    sort.Slice(people, func(i, j int) bool { return people[i].Name < people[j].Name })