I need to convert this code from java to c#..
points = points.sort(function(a, b) {
return a.angle - b.angle;
});
I tried this
for (var i = 0; i < points.Count-1; i++)
{
for (var j = i + 1; j < points.Count; j++)
{
if (points[i].angle > points[j].angle)
{
punct aux = points[i];
points[i] = points[j];
points[j] = aux;
}
}
}
But it didn't worked.. Any help?
didn't workmean? Was there an error? How do you know it didn't work?