Bugfix/label ordering

Sort the line labels by their "ideal" position before calculating the positions.

This avoid weird crossovers of graph lines and label positions.

See `/performance/practical-driving-test/device-type`