add regras do sort, corrigindo Delete