From 0e12e80e77ced57f99e2a727c9765e53c5e8c56a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Tue, 9 Feb 2016 19:59:44 +0100 Subject: [PATCH] ORDER BY Primary Key in MultipleLinkPage --- wcfsetup/install/files/lib/page/MultipleLinkPage.class.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/page/MultipleLinkPage.class.php b/wcfsetup/install/files/lib/page/MultipleLinkPage.class.php index 36459c242c..df6d9e3a28 100644 --- a/wcfsetup/install/files/lib/page/MultipleLinkPage.class.php +++ b/wcfsetup/install/files/lib/page/MultipleLinkPage.class.php @@ -118,7 +118,9 @@ abstract class MultipleLinkPage extends AbstractPage { if ($this->items) { $this->sqlLimit = $this->itemsPerPage; $this->sqlOffset = ($this->pageNo - 1) * $this->itemsPerPage; - if ($this->sortField && $this->sortOrder) $this->sqlOrderBy = $this->sortField." ".$this->sortOrder; + if ($this->sortField && $this->sortOrder) { + $this->sqlOrderBy = $this->sortField." ".$this->sortOrder.", ".$this->objectList->getDatabaseTableIndexName()." ".$this->sortOrder; + } $this->readObjects(); } } -- 2.20.1