find a new solution to order the vertices of a hex,TODO:simplify