Small optimization
authorMarcel Werk <burntime@woltlab.com>
Mon, 10 Jun 2013 21:40:27 +0000 (23:40 +0200)
committerMarcel Werk <burntime@woltlab.com>
Mon, 10 Jun 2013 21:40:27 +0000 (23:40 +0200)
wcfsetup/install/files/lib/data/moderation/queue/ModerationQueueAction.class.php

index 7dc76a63893433ff7be2ef780374d4f86579c90c..20e70f05b85494ad3a077cb3ae2e06e1e9432e4e 100644 (file)
@@ -87,6 +87,7 @@ class ModerationQueueAction extends AbstractDatabaseObjectAction {
                $queueList = new ViewableModerationQueueList();
                $queueList->getConditionBuilder()->add("moderation_queue.objectTypeID IN (?)", array($objectTypeIDs));
                $queueList->getConditionBuilder()->add("moderation_queue.status <> ?", array(ModerationQueue::STATUS_DONE));
+               $queueList->sqlOrderBy = 'moderation_queue.lastChangeTime DESC';
                $queueList->sqlLimit = 5;
                $queueList->loadUserProfiles = true;
                $queueList->readObjects();