J
jr
I created a simple class, have used it to populate a list (of myclass)
- The class only contains a customer id and a date. I would like to
sort this list based on most recent date to the oldest.
If possible please give a brief sample or a link to _VB_ code.
Thanks-
If it helps, here's the class I created:
Public Class Cust
Private _custid As String
Private _timestamp As Date
Public Property custid() As String
Get
custid = _custid
End Get
Set(ByVal value As String)
_custid = value
End Set
End Property
Public Property timestamp() As Date
Get
timestamp = _timestamp
End Get
Set(ByVal value As Date)
_timestamp = value
End Set
End Property
End Class
--
- The class only contains a customer id and a date. I would like to
sort this list based on most recent date to the oldest.
If possible please give a brief sample or a link to _VB_ code.
Thanks-
If it helps, here's the class I created:
Public Class Cust
Private _custid As String
Private _timestamp As Date
Public Property custid() As String
Get
custid = _custid
End Get
Set(ByVal value As String)
_custid = value
End Set
End Property
Public Property timestamp() As Date
Get
timestamp = _timestamp
End Get
Set(ByVal value As Date)
_timestamp = value
End Set
End Property
End Class
--