testsSortedByNome = tests.sort((a, b) => (a.nome > b.nome ? -1 : 1)); testsSortedByCognome = tests.sort((a, b) => (a.cognome > b.cognome ? -1 : 1));