• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 156
  • Last Modified:

NEED HELP URGENT!!!

I'm new working in Visual Basic and trying to figure out how can I sort a list by ascending and descending order.  Can somebody help me in this.
0
despianj
Asked:
despianj
1 Solution
 
NPluisCommented:
What kind of list? a listbox or an array, text or numeric. Please be a bit more specific.
0
 
HarmnKardnCommented:
If you're talking about a listbox control, there is a "ListBox.Sorted" property that can be set to ascending or descending alphabetical or numerical sort.

If you have an array or collection that you need to sort, try implementing a QuickSort, Bubble Sort, or something like that.  Here's a link with some examples:

http://www.mvps.org/vbnet/code/sort/qsvariations.htm
0
 
despianjAuthor Commented:
Thank you HarmnKardn this site help me alot.
0
 
CleanupPingCommented:
despianj:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
Experts: Post your closing recommendations!  Who deserves points here?
0
 
DanRollinsCommented:
Moderator, my recommended disposition is:

    Accept HarmnKardn's comment(s) as an answer.

DanRollins -- EE database cleanup volunteer
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now