Hacker News new | ask | show | jobs
by quchen 4194 days ago
For reverse sorting, there's a type that does specifically that.

    sortBy (comparing (Down . snd))
See http://hackage.haskell.org/package/base-4.7.0.1/docs/Data-Or...
1 comments

True, but I prefer not to use typeclasses in that way.