graph is now sorted and easier to read