Small performance optimization
authorMarcel Werk <burntime@woltlab.com>
Mon, 9 Sep 2013 19:46:58 +0000 (21:46 +0200)
committerMarcel Werk <burntime@woltlab.com>
Mon, 9 Sep 2013 19:46:58 +0000 (21:46 +0200)
files/lib/system/exporter/WBB3xExporter.class.php

index c1c8ed38aa1e5f17ef5722ef576e1ebae49b2820..90f01d78aaad52e62b24b0dfb8536e1ea5172669 100644 (file)
@@ -822,7 +822,7 @@ class WBB3xExporter extends AbstractExporter {
                        FROM            wcf".$this->dbNo."_pm_to_user pm_to_user
                        LEFT JOIN       wcf".$this->dbNo."_pm pm
                        ON              (pm.pmID = pm_to_user.pmID)
-                       ORDER BY        pm_to_user.pmID DESC, pm_to_user.recipientID";
+                       ORDER BY        pm_to_user.pmID DESC, pm_to_user.recipientID DESC";
                $statement = $this->database->prepareStatement($sql, $limit, $offset);
                $statement->execute();
                while ($row = $statement->fetchArray()) {