sortWith package:base-compat

sortWith for NonEmpty, behaves the same as:
sortBy . comparing