Sort Points Component not working?

i have a really big and heavy document and i am trying to sort some points inside a cluster. The problem is its not working and sometimes it skips a point
the Sorting Points component works correctly only when the points are internalised and i transfer the components to a new document.But then i do the same with an extra component and suddenly its not working. corrupt file maybe? its a bit weird, take a look at the attached file
Any ideas?

ps: i need to sort each branch within itself on XY, not all the points together

sorting points.gh (339.8 KB)

1 Like