To fix irreproducible ordering of graph nodes.
Marking as draft due to being unable to change against yesterday's nightly (too much has been merged which touches templated code). Will try tomorrow.