Sort by x coordinate

Hi,

I have a number of elements, which I want to arrange in a list by their X coordinates.
I used SortByFunction on Point.X. Then I checked Element.GetLocation, and I see that the X coordinates are not ascending / descending. What am i doing wrong?

thanks

Maybe is this helpfull:

2 Likes