played with spline length and length-based sorting