sortBy :: (Function, List) -> List