From: Marcel Werk Date: Mon, 10 Jun 2013 21:40:27 +0000 (+0200) Subject: Small optimization X-Git-Tag: 2.0.0_Beta_4~80 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a5493468c688a113b1ace0a2359739a5085c6d32;p=GitHub%2FWoltLab%2FWCF.git Small optimization --- diff --git a/wcfsetup/install/files/lib/data/moderation/queue/ModerationQueueAction.class.php b/wcfsetup/install/files/lib/data/moderation/queue/ModerationQueueAction.class.php index 7dc76a6389..20e70f05b8 100644 --- a/wcfsetup/install/files/lib/data/moderation/queue/ModerationQueueAction.class.php +++ b/wcfsetup/install/files/lib/data/moderation/queue/ModerationQueueAction.class.php @@ -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();