DmQuickSort CompareFunction Question

2004-02-16 Thread Régis Daniel de Oliveira
Hy all!!! Supose that i want to use DmQuickSort to sort a db that has the following recs: The primary key is the #ID column... #IDName 1TEST A 2584 TEST B 569TEST C 253624 TEST D The CompareFunction can return only

Re: DmQuickSort CompareFunction Question

2004-02-16 Thread SLO Revo News
The CompareFunction can return only Int16 numbers, but, 253624 is a Int32 number. How can i correctly sort the recs on this case? If the compare functions returns only -1, 0 and 1, it will work correctly, or i need to return the real diference between two values? You need to look at some sample

Re: DmQuickSort CompareFunction Question

2004-02-16 Thread Regis St-Gelais
Régis Daniel de Oliveira [EMAIL PROTECTED] a écrit dans le message de news:[EMAIL PROTECTED] If the compare functions returns only -1, 0 and 1, it will work correctly, or i need to return the real diference between two values? -1, 0 and 1 is what DmQuickSort is expecting to receive from