Added sort of vertices