From fef8537adbf12d200eca51d7d27fe597a43ebeda Mon Sep 17 00:00:00 2001
From: Aleksander Machniak <alec@alec.pl>
Date: Fri, 11 Sep 2015 09:12:20 -0400
Subject: [PATCH] Improved multi-folder search performance on sort order change or list page change by proper index serialization and skipped redundant sorting
---
program/lib/Roundcube/rcube_result_index.php | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/program/lib/Roundcube/rcube_result_index.php b/program/lib/Roundcube/rcube_result_index.php
index d87af33..5ea390b 100644
--- a/program/lib/Roundcube/rcube_result_index.php
+++ b/program/lib/Roundcube/rcube_result_index.php
@@ -30,9 +30,9 @@
protected $raw_data;
protected $mailbox;
- protected $meta = array();
+ protected $meta = array();
protected $params = array();
- protected $order = 'ASC';
+ protected $order = 'ASC';
const SEPARATOR_ELEMENT = ' ';
@@ -40,9 +40,10 @@
/**
* Object constructor.
*/
- public function __construct($mailbox = null, $data = null)
+ public function __construct($mailbox = null, $data = null, $order = null)
{
$this->mailbox = $mailbox;
+ $this->order = $order == 'DESC' ? 'DESC' : 'ASC';
$this->init($data);
}
--
Gitblit v1.9.1