Allow graphs to be resorted