We avoid sorting vertices, edges and connected components. The code is better this way, and this fixes a doctest error with py3.
CC: @tscrim @fchapoton
Component: graph theory
Author: David Coudert
Branch/Commit: f830eb9
Reviewer: Travis Scrimshaw
Issue created by migration from https://trac.sagemath.org/ticket/27009