 
       @listMembers invitations
       @isFetching = no
+
+
+  getSortOptions: ->
+
+    sortDirections = createdAt: -1, email: 1, firstName: 1, lastName: 1
+    sortType       = @sortSelectBox.getValue()
+    sort           = {}
+    sort[sortType] = sortDirections[sortType]
+
+    return sort

    options.searchInputPlaceholder   = 'Find by email or first name'
    options.listViewItemOptions    or= statusType: 'pending'
    options.statusType             or= 'pending'

    super options, data


    @isFetching    = yes
    { statusType } = @getOptions()
    query          = @searchInput.getValue()
    options        = { @skip, sort: @getSortOptions() }
    method         = 'some'
    selector       = status: statusType

