I
its me
Let's say I have a class of people...
Public Class People
Public Sex as String
Public Age as int
Public Name as string
end class
And I declare an array of this class...
Dim MyPeopleArray(3) as People
Then I fill my arry with 3 people...
MyPeopleArray(0).Sex = "Female"
MyPeopleArray(0).Age = 32
MyPeopleArray(0).Name = "Marsha Marsha Marsha"
MyPeopleArray(1).Sex = "Male"
MyPeopleArray(1).Age = 31
MyPeopleArray(1).Name = "John"
MyPeopleArray(2).Sex = "Can't decide"
MyPeopleArray(2).Age = "23"
MyPeopleArray(2).Name = "Don't lable me"
How would I resort my the MyPeopleArray to have the people in Age order,
name order or sex order?
Thanks!
Jim
Public Class People
Public Sex as String
Public Age as int
Public Name as string
end class
And I declare an array of this class...
Dim MyPeopleArray(3) as People
Then I fill my arry with 3 people...
MyPeopleArray(0).Sex = "Female"
MyPeopleArray(0).Age = 32
MyPeopleArray(0).Name = "Marsha Marsha Marsha"
MyPeopleArray(1).Sex = "Male"
MyPeopleArray(1).Age = 31
MyPeopleArray(1).Name = "John"
MyPeopleArray(2).Sex = "Can't decide"
MyPeopleArray(2).Age = "23"
MyPeopleArray(2).Name = "Don't lable me"
How would I resort my the MyPeopleArray to have the people in Age order,
name order or sex order?
Thanks!
Jim