Adjusted areFieldsIndexedForSorting method