Sort HLT1 lines by name
Sort lines by name and use gather_selections
as the source of truth about line names.
This should make reference updates a bit more robust.
Test together with Moore!3147 (merged), MooreOnline!343 (merged) and DaVinci!1140 (merged)
Edited by Roel Aaij