Sort line labels by ideal position before calculating positions

So the labels are in the same order as the graph lines
Reorder labels in config so that desktop is first

By request from @mikieet
Merge pull request #589 from alphagov/bugfix/label-ordering

Bugfix/label ordering