Updating minWith/maxWith to match sortBy