diff options
Diffstat (limited to 'includes/site/DBSiteStore.php')
-rw-r--r-- | includes/site/DBSiteStore.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/includes/site/DBSiteStore.php b/includes/site/DBSiteStore.php index f167584e..1193bd65 100644 --- a/includes/site/DBSiteStore.php +++ b/includes/site/DBSiteStore.php @@ -153,7 +153,11 @@ class DBSiteStore implements SiteStore { protected function loadSites() { $this->sites = new SiteList(); - foreach ( $this->sitesTable->select() as $siteRow ) { + $siteRows = $this->sitesTable->select( null, array(), array( + 'ORDER BY' => 'site_global_key' + ) ); + + foreach ( $siteRows as $siteRow ) { $this->sites[] = $this->siteFromRow( $siteRow ); } |