Hi, I want ask a little bit about Sorting Database : 

typedef struct 
{ char Item[10]; 
char Price[10]; 
} Data; 
Data Food; 

static int MyCompare(void *str1, void *str2, int other) 
{ 
return(StrCompare(str1,str2)); 
} 

// save database 
DmWrite(textP,0,&Food, sizeof(Food)); 

// sorting database 
DmQuickSort(gDB, (DmComparF *) MyCompare, 0); 


The Result is, database sorted by Item.... 

Question: 
How can I sort database by Price? 

Thank's 




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

Reply via email to