"sortUndo"

Discards the last sort.

Synopsis

setValue(string shape, "sortUndo", int dummy);

shape.sortUndo(int dummy);

Parameters

Parameter Description
shape Name of the object
dummy Dummy parameter, no significance

Description

Sorts the table entries by the criteria used for the last sort operation ("sort", "sortDyn", "sortPart", "sortUndo").

The "sortUndo" attribute only finds the last but one sort criteria. Criteria used earlier cannot be found in this way.

Example

main()
{
  shape table=getShape("table123");
  // Sort by "Surname"
  table.sort("Surname");
  // Sort by "Age"
  table.sort("Age");
  // Return to "Surname"
  table.sortUndo(1);
}

Assignment

Table