uniquify/sort lines