Add sorting of vertices to generator tests

Fixes  #36