 
         # change here if we add an UI for sorting
         # @props.queryParams is the current value
-        before = '-'
-        after = '-'
-        flag = '-'
+
         type = params.type
-        sort = '-date'
 
         switch type
             when 'from', 'dest'


            when 'date'
                if params.range
                    [before, after] = params.range

            when 'flag'
                if params.value

            action: 'account.mailbox.messages'
            parameters: [
                @props.accountID, @props.mailboxID,
                '-date', type, flag, before, after
            ]


