"setSorting"

Arranges the items of a column alphabetically in ascending or descending order.

Synopsis

shape.setSorting(int column, bool ascending);

Parameters

Parameter Description
shape Name of the object
column The column index
ascending

TRUE = items are sorted alphabetically in ascending order.

FALSE = items are sorted alphabetically in descending order.

Description

Arranges the items of a column alphabetically in ascending or descending order.

Example

Arranges the items alphabetically in ascending order. By setting "showSortIndicator" to TRUE an arrow is shown next to the column header, which indicates whether the items are sorted in ascending or descending order.

main()
{
  TREE1.setSorting(0, TRUE);
  TREE1.showSortIndicator(TRUE);
}
Abbildung 1. The "showSortIndicator" was set to TRUE for the "SURNAME" Column

Assignment

Tree widget