Sort lines

Blank lines are removed by default; toggle to keep them.