sortBy handles return of primitives