Sort a list with negative values

Hello,

I am trying to sort a list including negative values but sort component gave me a result below, in which negative values are placed in last place…

So I tried another method dividing the original list into two lists for positive and negative values then sort and merge into one list. It seems like this one works, but I don’t know how to re-order the point list based on the sorted coordinate list that I have now…


Does anyone have an idea? Thanks in advance

You need to flatten the inputs for the sorting to work.

2 Likes

Yeah, Sort List works on each branch and you have only one value per branch.

2 Likes