J
jvcoach23
I'm trying to figure out how to sort an iList in vb.net. Say i have a
collection that looks like
Private mvcLastName As String = Nothing
Private mvcFirstName As String = Nothing
Public Property LastName() As String
Get
Return mvcLastName
End Get
Set(ByVal pvalue As String)
mvcLastName = pvalue
End Set
End Property
Public Property FirstName() As String
Get
Return mvcFirstName
End Get
Set(ByVal pvalue As String)
mvcFirstName = pvalue
End Set
End Property
I'd like to know how to sort it by the property firstname or lastname and
either asc or desc. I've been looking around... but not able to get it
figured out.
thanks
hope someone can lend a hand
collection that looks like
Private mvcLastName As String = Nothing
Private mvcFirstName As String = Nothing
Public Property LastName() As String
Get
Return mvcLastName
End Get
Set(ByVal pvalue As String)
mvcLastName = pvalue
End Set
End Property
Public Property FirstName() As String
Get
Return mvcFirstName
End Get
Set(ByVal pvalue As String)
mvcFirstName = pvalue
End Set
End Property
I'd like to know how to sort it by the property firstname or lastname and
either asc or desc. I've been looking around... but not able to get it
figured out.
thanks
hope someone can lend a hand