Compartilhar via


SORTORDERSPEC

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

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

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. 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

Header rapitypes.h
Windows Embedded CE Windows CE 3.0 and later
Windows Mobile Pocket PC 2002 and later, Smartphone 2002 and later

See Also

Reference

CeCreateDatabase (RAPI)
CEDBASEINFO

Concepts

RAPI Structures