Added an option to reverse the HyperEdge sorting