Microsoft Windows CE 3.0  

SORTORDERSPEC

Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

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

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

Parameters

propid
Identifier of the property to be sorted on. Sorts on binary properties are not allowed.
dwFlags
Specifies the sort flags. To get the default sort, specify zero. The default is ascending order and case sensitive. Records that do not contain the sort property are placed after all other records.

To sort differently, specify 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 the sort property are placed before all the other records.

Remarks

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

Requirements

Runs on Versions Defined in Include Link to
Windows CE OS 1.0 and later Windbase.h Winbase.h  
Note   This API is part of the complete Windows CE OS package as provided by Microsoft. The functionality of a particular platform is determined by the original equipment manufacturer (OEM) and some devices may not support this API.

See Also

CeCreateDatabase, CEDBASEINFO