Sorter og fjern dubletter i linjer

Sorter linjer alfabetisk, fjern duplikater, trim mellomrom og slett tomme linjer.