1
Vote

ExtensionMethods.SortString

description

<Extension()> Function SortString(ByVal value As QueueSortOrder) As String
    Select Case value
        Case QueueSortOrder.Alphabetical : Return "date_added"
        Case QueueSortOrder.DateAdded : Return "alphabetical"
        Case QueueSortOrder.QueueSequence : Return "queue_sequence"
        Case Else : Throw New ArgumentOutOfRangeException("value")
    End Select
End Function
 
That doesn't look right. Alphabetical and DateAdded seem like they are switched.

comments