Improved ordering of displayed plot lines