How to change the order of curves?

From Plot-> Layout->Edit..., the order can be changed by clicking and dragging. Note that the curve at the end of the list is the upper curve displayed in the plot. You can also change the order from the List of Curves Toolbar (turn it on from View->List of Curves).