hi all!
am havin a problem in loading sorting items in a listbox. what i want is after i load a text file into a listbox the items are compared by the last number and sorted in descending order.
any help will be appreciated.

thanx in advance

Try to use generics.

Dim myItem As New List(Of String)
        myItem.Add("a")
        myItem.Add("b")
        myItem.Add("A")

        Dim k = From item In myItem Order By item Descending Select item
        ListBox1.DataSource = k.ToList()
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.