Excellent idea from rLewis!
We will expose the following Origin C method to Worksheet class to make this easier (without adding new col) in 8.1
/**
Reorder the worksheet with specified orders
Parameters:
vnOrder=[input] the orders of the rows to reorder
nC1=[input]The first column
nC2=[input]The last column, -1 means the last column in the worksheet
bUndo=[input] undo or not
Returns:
true if success, otherwise false
*/
BOOL Reorder(const vector<uint>& vnOrder, int nC1 = 0, int nC2 = -1, BOOL bUndo = FALSE);
We will then use this method in the new wdelrows X-Function in 8.1.
CP