How to sort an Array of vertices to make an unbroken 'sensible' geometry

This process is called triangulation, the thread here might help:

For concave geometry the results may not be exactly what you want without some tweaking in modeling software like Blender though.