Sort

Org_GetSort, Org_GetSortEx, Org_SetSort, Org_SetSortEx

Org_GetSort

Description 

 Org_GetSort(
   char *ColumnName,
   int  ValueLength,
   int *SortAscending
);

The function retrieves sorting parameters (column, type) of the active datasource.

Parameters

char *ColumnName

Buffer with the column name.

int ValueLength

Size (in characters) of the supplied buffer.

int *SortAscending

Pointer to variable (of type int) into which the sorting order (ascending/descending) should be stored.

0

Sort descending.

1

Sort ascending.

See Also 
Org_GetActiveDataSource

Org_GetSortEx

Description 

 Org_GetSortEx(
   int  DataSource,
   char *ColumnName,
   int  ValueLength,
   int *SortAscending
);

The function retrieves sorting parameters (column, type) of the specified datasource.

Parameters

int DataSource

Index of the datasource from which the data are read.

0

The datasource of the left pane.

1

The datasource of the right pane.

char *ColumnName

Buffer with the column name.

int ValueLength

Size (in characters) of the supplied buffer.

int *SortAscending

Pointer to variable (of type int) into which the sorting order (ascending/descending) should be stored.

0

Sort descending.

1

Sort ascending.

See Also 
Org_GetActiveDataSource

Org_SetSort

Description 

 Org_SetSort(
   char *ColumnName,
   int  Ascending
);

The function changes sorting parameters (column, type) of the active datasource.

Parameters

char *ColumnName

Buffer with the column name.

int Ascending

Flag which specifies whether data should be sorted in ascending or descending order.

0, FALSE

Sort descending.

1, TRUE

Sort ascending.

See Also 
Org_GetActiveDataSource

Org_SetSortEx

Description 

 Org_SetSortEx(
   int  DataSource,
   char *ColumnName,
   int  Ascending
);

The function changes sorting parameters (column, type) of the specified datasource.

Parameters

int DataSource

Index of the datasource from which the data are read.

0

The datasource of the left pane.

1

The datasource of the right pane.

char *ColumnName

Buffer with the column name.

int Ascending

Flag which specifies whether data should be sorted in ascending or descending order.

0, FALSE

Sort descending.

1, TRUE

Sort ascending.

See Also 
Org_GetActiveDataSource