     getMessagesByMailbox: (mailboxID) ->
         sequence = _messages.filter (message) ->
             return mailboxID in Object.keys message.get 'mailboxIDs'
-        .sort(__getSortFunction _sortField)
+        .sort(__getSortFunction _sortField, _sortOrder)
 
         ###
         if _filter isnt MessageFilter.ALL

            newIdsToLook = temp.map((item) -> item.get('id')).toArray()
            idsToLook = idsToLook.concat newIdsToLook

        return conversation

    getConversation: (conversationID) ->
        conversation = []

    _sortOrder   = 1
    _filter      = '-'
    _quickFilter = ''
    __getSortFunction = (criteria, order) ->
        sortFunction = (message1, message2) ->
            if typeof message1.get is 'function'
                val1 = message1.get criteria
