From cad6116dda48aad01adac6717d00f22ebddfc0fb Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Thu, 20 Feb 2014 21:39:42 +0100 Subject: [PATCH] Added missing sort order in like details --- .../install/files/lib/data/like/LikeAction.class.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/wcfsetup/install/files/lib/data/like/LikeAction.class.php b/wcfsetup/install/files/lib/data/like/LikeAction.class.php index cb14d7f164..b6a99bda6b 100644 --- a/wcfsetup/install/files/lib/data/like/LikeAction.class.php +++ b/wcfsetup/install/files/lib/data/like/LikeAction.class.php @@ -60,10 +60,11 @@ class LikeAction extends AbstractDatabaseObjectAction { * @return array */ public function getLikeDetails() { - $sql = "SELECT userID, likeValue - FROM wcf".WCF_N."_like - WHERE objectID = ? - AND objectTypeID = ?"; + $sql = "SELECT userID, likeValue + FROM wcf".WCF_N."_like + WHERE objectID = ? + AND objectTypeID = ? + ORDER BY time DESC"; $statement = WCF::getDB()->prepareStatement($sql); $statement->execute(array( $this->parameters['data']['objectID'], -- 2.20.1