Hi, i am new in programming in labwindows and hope soemone can give me a few advices. I am trying to plot a regression line with two sets of data (x, y)using the Polyfit function in labwindows. Then i plot the line using the PlotXY. However as the x-array data are not in incremental mode, this will cause the plotted line going back and forth. Found that in order to plot the regression line properly, the x-data must be in inremental mode. To do this, i need to sort the x-data into increment mode first. Doing this with huge amount of samples (1 million samples) takes very long time. Is there a way where i can plot the regression line properly without doing the sorting first?