Adding explicit line number sorting