Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim sortedExtensions As New List(Of SortedExtension)
sortedExtensions.Sort(Function(e1 As SortedExtension, e2 As SortedExtension) As Integer
If e1.Priority = e2.Priority Then
Return String.CompareOrdinal(e1.Name, e2.Name)
Else
Return e1.Priority.CompareTo(e2.Priority)
End If
End Function)
End Sub
|