made Vertices return a sorted list