It would be convienent if there was a way to sort multiple arrays when the arrays are dependent on each other. For example if there is an array of X values and an array of Y values, where the values make coordinates such as (x0, y0), (x1, y1), etc., and I want to sort the values by the X coordinate. Or in other words it would be convienent if there was a function that could sort two (or more) arrays based upon the values in just one of the arrays.
The main reason I want this is to make nice looking X-Y plots with lines connecting the points, but the data is not in numerical order by X coordinate.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.