From a5493468c688a113b1ace0a2359739a5085c6d32 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Mon, 10 Jun 2013 23:40:27 +0200 Subject: [PATCH] Small optimization --- .../lib/data/moderation/queue/ModerationQueueAction.class.php | 1 + 1 file changed, 1 insertion(+) 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(); -- 2.20.1