Add splitlines and sorts