Edgar T. López wrote:
Thank you, now my PDB's are orderly, but just one thing more. How Can I invert the order?, I mean , first the newest PDB instead of the oldest PDB.
If you read the documentation of SysQSort() again, you will see that it says the comparison function should return 0 if the two items are equal, a negative number if the first argument comes before the second, and a positive number if the first comes after the second. So, to invert the order, just put a minus sign in front of the number you return. That way, negative numbers will become positive and vice versa. If you'd like the option of doing it either way, then you can use the last argument to SysQSort(), which is called "other", and which is an Int32 that is passed into the comparison function. The comparison function can then check this value and then return the appropriate thing based on what type of ordering you wish to have. - Logan -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
