Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

Sort ListBox numerically in C#

ArrayList Sorting = new ArrayList(); 

foreach (var o in listBox1.Items) {
    Sorting.Add(o);
} 

Sorting.Sort(); 

listBox1.Items.Clear();

foreach (var o in Sorting) {
    listBox1.Items.Add(o); 
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Sort #ListBox #numerically
ADD COMMENT
Topic
Name
3+6 =