Sort lines, keep lines