I think the sortInfoID is rarely used.

Sorting is actually quite simple. See DmQuickSort. You need to define a
record compare function for use with DmQuickSort. The function must agree
with the DmComparF prototype. The simplest way to use DmQuickSort or
DmInsertionSort, is to define compare functions for each field/criteria you
want to sort by or use the DmQuickSort "other" argument to indicate the sort
criteria to a mult-function compare routine. After sorting you continue to
read the records by their index - which may have changed due to sorting. Use
DmFindSortPosition and the appropriate compare function (whatever you have
used to sort the db) to insert new records into the database in proper sort
order.

Ralph

"BrownB" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hello, can anybody give me some hints about how to sort a database? At the
moment I'm reading records just by record index. How should I use the
sortInfoId field of the database header?
> BrownB
>



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to