sorting 2D Array in vb.net

Posted by Gvgbabu under VB.NET on 5/18/2014 | Points: 10 | Views : 462 | Status : [Member] | Replies : 1
i hope some body point me to the right direction.

i have a 2D array in vb.net with more than 3000 items. Each item has 36 sub items.

i want to sort as follows:

ex:

j=1

arr(3000,36)

for i= 0 t0 3000-1

for j=1 to 3000-1

if arr(i,14)=arr(j,4) then

'if the item matches entire item swap to 2nd place (cut and paste)


'if there is no match then go to next item ie arr(1,14) if it is
' swap item then go to arr(2,14) so on...

'if found exit for

end if

next

next

which is the best way to do this

i) split it into no. of 1 D arrays and sort and again combine it

ii) array of structure with 36 sub items and sort it

or any alternative to these

please guide me.




Responses

Posted by: kgovindarao523-21772 on: 6/2/2014 [Member] [MVP] Bronze | Points: 25

Up
0
Down
Hi,
Please read this article.
http://www.informit.com/guides/content.aspx?g=dotnet&seqNum=151

Thank you,
Govind

Gvgbabu, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response