Edge sort for syntax graph visualization.