sortlines add, now the programs works