from Hacker News

Easy sorting in Go

by miolini on 6/14/16, 4:41 AM with 4 comments

  • by zzzcpan on 6/15/16, 1:13 AM

    Yeah, OO interface for sort from Go's standard library is crap. But why reflect and all that magic? I was expecting something based on function literals as a decent way to sort truly arbitrary data and not break context.
  • by patrickmn on 6/14/16, 2:58 PM

    Same idea: https://github.com/patrickmn/sortutil

    Wish it was easier without reflection.