i understand that it need a different function and logc for everything but how it decides ?
does it run internally, a compare between EACH two column items ?
Problem to sort numbers
Re: Problem to sort numbers
Christos
Re: Problem to sort numbers
I guess it uses some generic sorting algorithm (quicksort or so), which doesn't need to compare each item with all other items, but is narrowing it down with less tries.
You can see what it's doing by adding "DebugPrint(e1, e2)" in the sorting function. With a quick look it seems to do something like average 4-5 comparisons per item with that example code with 15 items. It's still calling the function quite many times, so better not make it too heavy either...
You can see what it's doing by adding "DebugPrint(e1, e2)" in the sorting function. With a quick look it seems to do something like average 4-5 comparisons per item with that example code with 15 items. It's still calling the function quite many times, so better not make it too heavy either...