Updated method sortBy in the underscore file