8.2.59.34 table.movevars

Method: out = movevars (obj, vars, relLocation, location)

Move around variables in a table.

vars is a list of variables to move, specified by name or index.

relLocation is 'Before' or 'After'.

location indicates a single variable to use as the target location, specified by name or index. If it is specified by index, it is the index into the list of *unmoved* variables from obj, not the original full list of variables in obj.

Returns a table with the same variables as obj, but in a different order.