SortEdges

Sorts arrays of edges by the specified criteria.