I'm probably oversimplifying this but anyway. :-)
1. Calculate the angle of the lines.
2. Use a Sorter to sort on angle.
3. Use a Counter to give the lines their number.
danullen wrote:
I'm probably oversimplifying this but anyway. :-)
1. Calculate the angle of the lines.
2. Use a Sorter to sort on angle.
3. Use a Counter to give the lines their number.
Agree, only extra thing that will help is use custom hub transformer HorizontalAngleCalculator to get an angle attribute for Step 1
It might be hard to define the order generally unless you add some conditions. For example, how do you define the order of the lines in this case?

takashi wrote:
It might be hard to define the order generally unless you add some conditions. For example, how do you define the order of the lines in this case?

I'll answer that question at midnight. Is that 0.00 AM or 12.00 PM by the way..? ;-)
It may be overkill, but I tend to use the TopologyBuilder, the nodeAngle list gives the lines in order from the positive x axis.