I'm not quite sure what you're asking for. Is it that you want to
sort the rows of a 2D Integer array? Certainly Array.Sort works for
1D Integer arrays.
Charles Yeomans
On Sep 11, 2006, at 5:25 PM, Daniel Pereira wrote:
Hi Charles,
Your library is very well designed. I figured a way using the
comparator
class to sort 2D array acting as records and also doing multi
columns sorts.
For this I need to sort integer arrays. I've used the string array
sort
(converting integer to string) for my test.
Is it possible for you to add this feature in your library. I know
that I
can duplicate and convert certain method to sort integer instead of
string.
But I don't like to touch good librairies...
Maybe it is easily done using the object sorting. Is a array of
integer can
be considered an array of object in your library?
I first tested the water using the listbox.sort with its comparator
for
doing 2D arrays. It works also. But your library is much faster...
(time in ticks)
Records ListBox.sort Sortlibrary
500 <1 <1
1000 8 2 4 x
5000 60 10 6 x
10000 125 25 5 x
20000 1000 40 25 x
100000 7800 160 48 x
So the bigger the record number, the greater is the différence.
Thanks
Daniel Pereira
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>