A non-decreasing sorting method added for Edges