SORTORDERSPEC

This structure contains information about a sort order in a database.

At a Glance

Header file: Windbase.h
Windows CE versions: 1.0 and later

Syntax

 typedef struct _SORTORDERSPEC {
CEPROPID
propid;
DWORD
dwFlags;
} SORTORDERSPEC;

Members

propid

Identifier of the property to be sorted on. Sorts on binary properties are not allowed.

dwFlags

Specifies the sort flags. It is one or a combination of the following flags:

Value Description
CEDB_SORT_DESCENDING The sort is done in descending order. By default, the sort is done in ascending order.
CEDB_SORT_CASEINSENSITIVE The sort operation is case insensitive. This value is valid only for strings.
CEDB_SORT_UNKNOWNFIRST Records that do not contain this property are placed before all the other records. By default, such records are placed after all other records.
CEDB_SORT_GENERICORDER The default sort order—ascending order, case sensitive—is used. Records that do not contain the sort property are placed at the end of the list.

Remarks

The system supports only simple sorts on a primary key. Records with the same key value are be sorted in arbitrary order.

See Also

CeCreateDatabase, CeDBASEINFO