Seems, you're talking about
Drawing.Point[
^]
If i'm right, you can sort them using Linq:
Dim points As List(Of Drawing.Point) = New List(Of Drawing.Point) From
{
New Drawing.Point(1160, 0),
New Drawing.Point(1560, 400),
New Drawing.Point(11940, 10380),
New Drawing.Point(12480, 540),
New Drawing.Point(12540, 60),
New Drawing.Point(12600, 60),
New Drawing.Point(12720, 120),
New Drawing.Point(13120, 400),
New Drawing.Point(13380, 260),
New Drawing.Point(13680, 300),
New Drawing.Point(14000, 320)
}
Dim sortedPointsByX = points.OrderByDescending(Function(p) p.X).ToList()
Dim sortedPointsByY = points.OrderByDescending(Function(p) p.Y).ToList()
Above code returns:
'#1
14000 320
13680 300
13380 260
13120 400
12720 120
12600 60
12540 60
12480 540
11940 10380
1560 400
1160 0
'#2
11940 10380
12480 540
1560 400
13120 400
14000 320
13680 300
13380 260
12720 120
12540 60
12600 60
1160 0