change graph drawing order