Better ordering of the node states for the plotting