Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27514

Vb.net 2010 Sort List(of String) : String with Integer

$
0
0
Hello Genius :
can you help me how to sort string in List(of String)
my code is

PHP Code:

    Dim _lst As List(Of String) = New List(Of String)({"ob1""ob5""ob2""ob3""ob33""ob10""ob1""ob11""ob123""ob20"})
            
_lst.Sort()
            
ListBox1.Items.AddRange(_lst.ToArray

Result is like :=
PHP Code:

ob1
ob1
ob10
ob11
ob123
ob2
ob20
ob3
ob33
ob5 

but i want to result like this :=
PHP Code:

 ob1,ob1,ob2,ob3,.......... 

how to sort like this please help me l'm struggled

Thanks

Viewing all articles
Browse latest Browse all 27514

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>