Added missing sort order in like details
authorMarcel Werk <burntime@woltlab.com>
Thu, 20 Feb 2014 20:39:42 +0000 (21:39 +0100)
committerMarcel Werk <burntime@woltlab.com>
Thu, 20 Feb 2014 20:39:42 +0000 (21:39 +0100)
wcfsetup/install/files/lib/data/like/LikeAction.class.php

index cb14d7f164502361e6bdfbc7f02fc09ea16ed514..b6a99bda6bbc8f032ec79f593b8ce5c9336edbde 100644 (file)
@@ -60,10 +60,11 @@ class LikeAction extends AbstractDatabaseObjectAction {
         * @return      array<string>
         */
        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'],