Fix sorting of edit history entries with the same timestamp
authorTim Düsterhus <timwolla@googlemail.com>
Sun, 28 Jun 2015 23:12:24 +0000 (01:12 +0200)
committerTim Düsterhus <timwolla@googlemail.com>
Sun, 28 Jun 2015 23:12:24 +0000 (01:12 +0200)
wcfsetup/install/files/lib/page/EditHistoryPage.class.php

index 0fe7aef43a31014fd5c33bb31feb6ee01ca7775d..1630323d1c13c5b104a21ad68b9b73453146512c 100644 (file)
@@ -147,7 +147,7 @@ class EditHistoryPage extends AbstractPage {
                parent::readData();
                
                $this->objectList = new EditHistoryEntryList();
-               $this->objectList->sqlOrderBy = "time DESC";
+               $this->objectList->sqlOrderBy = "time DESC, entryID DESC";
                $this->objectList->getConditionBuilder()->add('objectTypeID = ?', array($this->objectType->objectTypeID));
                $this->objectList->getConditionBuilder()->add('objectID = ?', array($this->objectID));
                $this->objectList->readObjects();