Put this class in your solution. Change ‘[object name of your collection]’ to be the name of your object that defines your collection.
Public Class SimpleComparer Implements IComparer(Of [object name of your collection]) Private _propertyToSort As String Private _sortOrder As…