Aspose::Cells::DataSorter::AddKey method

DataSorter::AddKey(int32_t, SortOrder) method

Adds sorted column index and sort order.

void Aspose::Cells::DataSorter::AddKey(int32_t key, SortOrder order)
ParameterTypeDescription
keyint32_tThe sorted column index(absolute position, column A is 0, B is 1, …)
orderSortOrderThe sort order

See Also

DataSorter::AddKey(int32_t, SortOrder, const U16String&) method

Adds sorted column index and sort order with custom sort list.

void Aspose::Cells::DataSorter::AddKey(int32_t key, SortOrder order, const U16String &customList)
ParameterTypeDescription
keyint32_tThe sorted column index(absolute position, column A is 0, B is 1, …)
orderSortOrderThe sort order.
customListconst U16String&The custom sort list.

See Also

DataSorter::AddKey(int32_t, SortOrder, const char16_t*) method

Adds sorted column index and sort order with custom sort list.

void Aspose::Cells::DataSorter::AddKey(int32_t key, SortOrder order, const char16_t *customList)
ParameterTypeDescription
keyint32_tThe sorted column index(absolute position, column A is 0, B is 1, …)
orderSortOrderThe sort order.
customListconst char16_t*The custom sort list.

See Also

DataSorter::AddKey(int32_t, SortOnType, SortOrder, const Aspose::Cells::Object&) method

Adds sorted column index and sort order with custom sort list.

void Aspose::Cells::DataSorter::AddKey(int32_t key, SortOnType type, SortOrder order, const Aspose::Cells::Object &customList)
ParameterTypeDescription
keyint32_tThe sorted column index(absolute position, column A is 0, B is 1, …)
typeSortOnTypeThe sorted value type.
orderSortOrderThe sort order.
customListconst Aspose::Cells::Object&The custom sort list.

Remarks

If type is SortOnType.CellColor or SortOnType.FontColor, the customList is Color.

See Also

DataSorter::AddKey(int32_t, SortOrder, const Vector <U16String>&) method

Adds sorted column index and sort order with custom sort list.

void Aspose::Cells::DataSorter::AddKey(int32_t key, SortOrder order, const Vector<U16String> &customList)
ParameterTypeDescription
keyint32_tThe sorted column index(absolute position, column A is 0, B is 1, …)
orderSortOrderThe sort order.
customListconst Vector <U16String>&The custom sort list.

See Also