add sort

Vertice sorting has been added, but we need to do something with multipolygons.
Now we have infinity loop when we try to sort multipolygons as polygon.