summaryrefslogtreecommitdiff
path: root/includes/site/DBSiteStore.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/site/DBSiteStore.php')
-rw-r--r--includes/site/DBSiteStore.php6
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 );
}