Help - sort a 'list' of structure (vb.net 2010)

P

Phil

Hi,

I'm kind of new to vb.net and need to know how to sort a 'list' of
structure.

For example:

Structure PERSON_STRUCTURE
Dim sFirstName as String
Dim sLastName as String
Dim dDateOfBirth as Date
Dim iAge as Integer
End Structure

Dim list_PEOPLE as new list (of PERSON_STRUCTURE).

--------------
Now I add a whole bunch of people to the list.

How can I sort the 'list_PEOPLE' by: First Name, or Last Name, or
DateOfBirth or Age?
(Most of the sample stuff on the internet only show how to sort a list
(of String).

Thank you.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top