diff --git a/library/mysql.php b/library/mysql.php index 8bf55de..e2ee1ea 100644 --- a/library/mysql.php +++ b/library/mysql.php @@ -521,7 +521,7 @@ class MySQL { WHERE (`hostPage`.`timeUpdated` IS NULL OR `hostPage`.`timeUpdated` < ? ) AND `host`.`status` <> 0 - ORDER BY `hostPage`.`hostPageId` + ORDER BY `hostPage`.`rank` DESC, RAND() LIMIT ' . (int) $limit); @@ -553,7 +553,7 @@ class MySQL { WHERE (`hostImage`.`timeUpdated` IS NULL OR `hostImage`.`timeUpdated` < ? ) AND `host`.`status` <> 0 - ORDER BY `hostImage`.`hostImageId` + ORDER BY `hostImage`.`rank` DESC, RAND() LIMIT ' . (int) $limit);