Example: sort method

This example sorts the range by text, sorts the second and forth column in an descending sequence, sorts the third column in an ascending sequence.

  Range range = sheet.range("A1:E6");
  range.sort(2, Constant.SYMPHONY_SORT_DESCENDING, 3,
				Constant.SYMPHONY_SORT_ASCENDING, 4,
				Constant.SYMPHONY_SORT_DESCENDING,
				Constant.SYMPHONY_SORT_TYPE_TEXT, false,
				Constant.SYMPHONY_ORIENTATION_COLUMN, true);

Related information

sort method