Click here to Skip to main content
15,898,134 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
VB
Dim Separator() As String = {" is "}
        Dim SomeArray(ListBox1.Items.Count, 1) As Integer

        For Count As Integer = 0 To ListBox1.Items.Count - 1
            Dim Splitted() As String = ListBox1.Items(Count).ToString.Split(Separator, StringSplitOptions.None)
            SomeArray(Count, 0) = CLng(Splitted(0))
            SomeArray(Count, 1) = CLng(Splitted(1))
            ColumnA.AddRange(New Integer() {SomeArray(Count, 0)})
            ColumnB.AddRange(New Integer() {SomeArray(Count, 1)})
        Next


        'ColumnB.Sort()


        For I As Integer = 0 To ColumnA.Count - 1
            ListBox2.Items.Add(ColumnA(I).ToString & "     " & ColumnB(I).ToString)
           
        Next
Posted
Updated 26-Sep-15 18:06pm
v2

Try list.OrderBy(x => x.CoulmnA).OrderBy(y => y.CoulmnB).
 
Share this answer
 
any idea from other programming please,,
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900