SORTORDERSPEC

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

 Last updated on Tuesday, July 13, 2004

© 1992-2000 Microsoft Corporation. All rights reserved.