How do I sort a listview by a specific column in Visual Basic 2005?

I want to be able to sort a ListView by a specific column in Visual Basic 2005. Microsoft has an article for it at http://support.microsoft.com/kb/319399 but the instructions for doing this in Visual Basic 2005 are lacking. What modifications should I make to make the article code work? Or any other suggestions?
CompmindAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

divinewind80Commented:
My suggestion would be to change your SQL statement to ORDER by your field and then refresh the ListView.  Will this work for you?

0
CompmindAuthor Commented:
I am not using a binded Listbox and it is not related to an Specific table in the database so no it wouldn't work
0
divinewind80Commented:
Is this static data?  Otherwise, can you show the code for retrieving your data?
0
Cloud Class® Course: Microsoft Exchange Server

The MCTS: Microsoft Exchange Server 2010 certification validates your skills in supporting the maintenance and administration of the Exchange servers in an enterprise environment. Learn everything you need to know with this course.

CompmindAuthor Commented:
nope it is dynamic data that is retrieved from the contents of a form
0
CompmindAuthor Commented:
the data looks somewhat like this

Some group
Detail                                                     Location
Some detail here                                          AF

I want to sort by the location column
0
CompmindAuthor Commented:
Nobody has so far been able to answer thi question please proceed to closing it
0
CompmindAuthor Commented:
I ended up reordering the data myself before doing the loading on the listview but that wasn't the idea
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.