I have an Array similiar to
Dim PersonNameAge(1,4) As String
PersonNameAge(0,0) = "Chris"
PersonNameAge(0,1) = "Jason"
PersonNameAge(0,2) = "Shawn"
PersonNameAge(0,3) = "Pete"
PersonNameAge(0,4) = "Keith"
PersonNameAge(1,0) = "28"
PersonNameAge(1,1) = "21"
PersonNameAge(1,2) = "26"
PersonNameAge(1,3) = "29"
PersonNameAge(1,4) = "23"
Is there a way I can sort the array by Name, but keep the corrisponding age correct?
Thanks a ton.
Dim PersonNameAge(1,4) As String
PersonNameAge(0,0) = "Chris"
PersonNameAge(0,1) = "Jason"
PersonNameAge(0,2) = "Shawn"
PersonNameAge(0,3) = "Pete"
PersonNameAge(0,4) = "Keith"
PersonNameAge(1,0) = "28"
PersonNameAge(1,1) = "21"
PersonNameAge(1,2) = "26"
PersonNameAge(1,3) = "29"
PersonNameAge(1,4) = "23"
Is there a way I can sort the array by Name, but keep the corrisponding age correct?
Thanks a ton.