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.
Syntax: int DB_Order(DBBLOCK *dblk, RECORDNUM recnum1,
char far *rec1, RECORDNUM recnum2, char far *rec2);
0 rec1 is equal to rec2
1 rec1 is greater than rec2