sortEdgesByReducingRank