* Horde_Imap_Client::THREAD_REFS. Additionally, other
* algorithms can be explicitly specified by passing the IMAP
* thread algorithm in as a string.
+ * DEFAULT: Horde_Imap_Client::THREAD_ORDEREDSUBJECT
* 'search' - (object) The search query (a
* Horde_Imap_Client_Search_Query object).
* DEFAULT: All messages in mailbox included in thread sort.
/**
* Thread sort a given list of messages (RFC 5256).
*
- * @param array $options Additional options.
+ * @param array $options Additional options. See thread().
*
* @return array An array with the following values, one per message,
* with the key being either the UID (default) or the
$tsort = (isset($options['criteria']))
? (is_string($options['criteria']) ? strtoupper($options['criteria']) : $thread_criteria[$options['criteria']])
- : 'REFERENCES';
+ : 'ORDEREDSUBJECT';
$cap = $this->queryCapability('THREAD');
if (!$cap || !in_array($tsort, $cap)) {