xxxxxxxxxx
list = list.OrderBy(x => x.AVC ? 0 : 1)
.ToList();
xxxxxxxxxx
List<DataPoint> dataPoints = new List<DataPoint>
{
new DataPoint { Diameter = 10.0, From = 1, Recap = "Point 1" },
new DataPoint { Diameter = 8.5, From = 2, Recap = "Point 2" },
new DataPoint { Diameter = 12.3, From = 3, Recap = "Point 3" }
// ... add more data points
};
// Sorting the list based on Diameter
List<DataPoint> sortedDataPoints = dataPoints.OrderBy(dp => dp.Diameter).ToList();