DataSorter.Sort

Sort(Cells, int, int, int, int)

Sorts the data of the area.

public int[] Sort(Cells cells, int startRow, int startColumn, int endRow, int endColumn)
ParameterTypeDescription
cellsCellsThe cells contains the data area.
startRowInt32The start row of the area.
startColumnInt32The start column of the area.
endRowInt32The end row of the area.
endColumnInt32The end column of the area.

Return Value

the original indices(absolute position, for example, column A is 0, B is 1, …) of the sorted rows/columns. If no rows/columns needs to be moved by this sorting operation, null will be returned.

See Also


Sort(Cells, CellArea)

Sort the data of the area.

public int[] Sort(Cells cells, CellArea area)
ParameterTypeDescription
cellsCellsThe cells contains the data area.
areaCellAreaThe area needed to sort

Return Value

the original indices(absolute position, for example, column A is 0, B is 1, …) of the sorted rows/columns. If no rows/columns needs to be moved by this sorting operation, null will be returned.

See Also


Sort()

Sort the data in the range.

public int[] Sort()

Return Value

the original indices(absolute position, for example, column A is 0, B is 1, …) of the sorted rows/columns. If no rows/columns needs to be moved by this sorting operation, null will be returned.

See Also