3 ms·
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/
by quchen 12y 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-Ord.html#t:Down http://hackage.haskell.org/package/base-4.7.0.1/docs/Data-Or...
- evincarofautumn 12y agoTrue, but I prefer not to use typeclasses in that way.