[U] Get only surface nodes.

Sort the merged nodes lexicographically to obtain the surface nodes.