Sorting graphs.