Allow search for lines with no destination and order correctly