score:0

Try to change the target sort. Instead of function ascendingTargetDepth(a, b) change it to function ascendingTargetDepth(b, a). IE sort by name in descending order.

function ascendingTargetDepth(b, a) {
  return a.target.y - b.target.y;
}

Related Query

More Query from same tag