I am trying to classify result from a list and than Print() them in that order.
var result = list.Select(x => new { difference = Math.Abs(x - fibo1), value = x }).OrderBy(x => x.difference).First().value;
Print(result);
Its listing the result in the output window but i am not sure in the order it suppose to be.
I can see the doubles showing .785664, 1.5589, 145698 etc but it does not seem to be in order of my code. Is it suppose to come out like i wish in the OW or does the OW only return the numbers in an order the way the data comes?
I want to use addplot to generate a line in the chart from the order of that result, will it work?
Comment