Use the built in sortOn with GHC 7.9 and above
Make groupOn and nubOn apply the predicate less