DB_Order

This function acts like the C string compare functions: returns -1 if rec1<rec2, returns 1 if rec1>rec2, and returns 0 if rec1=rec2. Note that both records must be loaded and in memory to use this function. The comparisons are made by examining the current sort definition which gives the order of the sort keys. Comparisons are based on the field types.