0

All I need is a simple way to sort the strings in the collection. I can't find anything online. Everybody is using lambda expressions which I don't think works for just a string collection? Thanks,

   Public Property FilterCollection As New ObservableCollection(Of String)

  From d In FilterCollection Order By (Function(d) d)()
4

1 回答 1

-2

我的 VB.Net 生锈了,但试试

Dim sortedCollection = FilterCollection.OrderBy(Function(s) s)
于 2012-05-22T19:34:19.517 回答