Skip to content

Commit

Permalink
Requst results to be returned in descending order by arrival date.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Feb 23, 2015
1 parent 9d9766d commit 863e64e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion framework/ActiveSync/lib/Horde/ActiveSync/Imap/Adapter.php
Expand Up @@ -1517,7 +1517,9 @@ protected function _doQuery(array $query)
$search_res = $this->_getImapOb()->search(
$mbox,
$imap_query,
array('results' => array(Horde_Imap_Client::SEARCH_RESULTS_MATCH, Horde_Imap_Client::SEARCH_RESULTS_SAVE, Horde_Imap_Client::SEARCH_RESULTS_COUNT))
array(
'results' => array(Horde_Imap_Client::SEARCH_RESULTS_MATCH, Horde_Imap_Client::SEARCH_RESULTS_SAVE, Horde_Imap_Client::SEARCH_RESULTS_COUNT),
'sort' => array(Horde_Imap_Client::SORT_REVERSE, Horde_Imap_Client::SORT_ARRIVAL))
);
} catch (Horde_Imap_Client_Exception $e) {
throw new Horde_ActiveSync_Exception($e);
Expand Down

0 comments on commit 863e64e

Please sign in to comment.