Working on Edge Sorting