if all edges are already sorted then this problem will reduced to union-find problem on a graph with $E$ edges and $V$ vertices.
for each edge (u,v) in E
if(FIND-SET(u) != FIND-SET(v))
UNION(u,v)
FIND-SET$(v)$ and UNION$(u,v)$ runs in $α(|V|)$
where $α(n)$ is inverse ackermann function i.e $\log^*(n)$
So overall complexity becomes $O(|E|.α(|V|))$