This method sorts a range of values.
Defined in
Syntax
public void Sort(int key1, int order1, int key2, int order2, int key3, int order3, int type, boolean matchCase, int orientation, boolean header) throws SymphonyException
Parameters
int key1
Specifies the first sort filed and can be any index of the column or row in the range, determined by the parameter orientation, starting at 1. If the column or row index is out of bounds, this method throws an exception.
int order1
Specifies the sort order for the values specified in parameter key1. The value can be a sort order constant.
int key2
Specifies the second sort filed and can be any index of the column or row in the range, and determined by the parameter orientation. If the column or row index is out of bounds, this method throws an exception.
int order2
Specifies the sort order for the values specified in parameter key2. The value is the same as the parameter order1.
int key3
Specifies the third sort filed and can be any index of the column or row in the range, and determined by the parameter orientation. If the column or row index is out of bounds, this method throws an exception.
int order3
Specifies the sort order for the values specified in parameter key3. The value is the same as the parameter order1.
int type
Specifies the sort type and can be a sort type constant.
boolean matchCase
Specifies whether match case. A value of true matches the case.
int orientation
Specifies whether to sort by column or row and can be aGroupSort orientation constant. A value of Constant.SYMPHONY_ORIENTATION_COLUMN sorts by column. A value of Constant.SYMPHONY_ORIENTATION_ROW sorts by row.
boolean header
true means that the first column or row is the header, false means the first column or row is not the header.
See examples