Sorting edges for initialization in progress