Sorting two lists

xpertwinner

Member
Joined
Dec 26, 2008
Messages
24
Programming Experience
Beginner
I have two lists, one is a list os values and the other is a list of strings. Is there any way I can connect both lists? For example I have

VB.NET:
LIST ONE             LIST TWO
35                      QWERTY
22                      ASDFGH
99                      ZXCVBN

I want to order list one, but I want list two to follow:

VB.NET:
LIST ONE             LIST TWO

22                      ASDFGH
35                      QWERTY
99                      ZXCVBN

How can I do this? thanks in advance
 
Last edited by a moderator:
Array.Sort can sort arrays like that:
VB.NET:
Dim list1() As String = {"b", "a", "c"}
Dim list2() As Integer = {2, 1, 3}
Array.Sort(list1, list2)
 
Back
Top