Fix matching callback function passed as array
Keep Vertex indices unchanged when sorting or matching