A mesh aware vertices sorting node use the stable python sort.
Mesh with unclear order of order after remove doubles.
Sort XYZ. Should be able to define sorting order, for example Y X Z.
Distance from a point
The user creates the sorting criteria. In this case the Y values.