Hi every body
I created a class to sort an arraylist that i used to bind a GridView. In this case i have no problems, in this case i sort my arraylist with the id_user.
But i don't know how sort this same arraylist with id_user and date, in fact i want te realized a sort with the id_user in the first sort and after with the date, 2 sorts in my arraylist. But i don't know how to do that.
You may see my class below:
Public Class trieur
Public Function Compare(ByVal x As Object, ByVal y As Object) As Integer Implements System.Collections.IComparer.Compare
Dim valeurX As modif = CType(x, modif)
Dim valeurY As modif = CType(y, modif)
Select Case valeurX.id_User- valeurY.id_User
Case Is > 0
Return 1
Case Is = 0
Return 0
Case Else
Return -1
End Select
End Function
End Class