SORTORDERSPEC

Send Feedback

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

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. Needs general description.

  • 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

Pocket PC: Pocket PC 2002 and later
Smartphone: Smartphone 2002 and later
OS Versions: Windows CE 3.0 and later
Header: Rapitypes.h

See Also

Remote API Structures | CeCreateDatabase | CEDBASEINFO

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.