Page 1 of 1

Why does edit>sort not work for me?

Posted: Sat Jul 11, 2009 5:49 pm
by scooter
I cannot get edit>sort to work. (Note that I have only been using DPlot for one day.)

Dropping the following sample data on DPlot does give me a curve, and I can work with it using most program options:

0 148
1 125
2 126
3 141
4 191
5 178
6 173

But clicking "sort" does not change the data order. Why? Thanks.

Posted: Sat Jul 11, 2009 8:45 pm
by DPlotAdmin
Because it's already sorted in increasing X order. Not sure what you want to do here; if you'd give a bit more info it might be that you can do it in some other way.

Posted: Sat Jul 11, 2009 11:51 pm
by scooter
It is obvious to me now that I read the "sort" definition. The sort function operates on XY data pairs, not just the Y value. What I wanted was sorted Y values, altering the pairings, like this:

0 125
1 126
2 141
3 148
4 173
5 178
6 191

So that should be done before importing the data. Thanks.