implemented __sort_surface_edges()