Ver Mensaje Individual
  #2 (permalink)  
Antiguo 03/09/2011, 17:04
german_martin
 
Fecha de Ingreso: septiembre-2006
Ubicación: Buenos Aires
Mensajes: 132
Antigüedad: 18 años, 6 meses
Puntos: 0
Respuesta: Ordenar un generic list(of T)

Lo he solucionado por mi cuenta

Código:
    Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs)
    
        CabinetComun.Add(New CounterStrikeInfo("john", "headshot", 1, "bruce", "gun"))
        CabinetComun.Add(New CounterStrikeInfo("edward", "headshot", 1, "eddie", "machinegun"))
        CabinetComun.Add(New CounterStrikeInfo("edward", "killed", 1, "eddie", "machinegun"))
        CabinetComun.Add(New CounterStrikeInfo("edward", "left the game", 1, "", ""))
        CabinetComun.Add(New CounterStrikeInfo("edward", "entered the game", 1, "", ""))

        'ACA LO ORDENA
        CabinetComun.Sort(Function(p1, p2) p1.Action .CompareTo(p2.Action ))

        CabinetComun.ForEach(AddressOf displayCounterStrikeInfo)
                
    End Sub