Modifiquei externalSorting