Fix order

This commit is contained in:
Laurent Destailleur 2021-04-18 14:48:38 +02:00
parent fd3f2f4e27
commit 8067e1d70a

View File

@ -2266,7 +2266,7 @@ if ($action == 'generatesitemaps' && $usercanedit) {
$sql .= " AND wp.status = ".WebsitePage::STATUS_VALIDATED;
$sql .= " AND wp.pageurl NOT IN ('404', '500', '501', '503')";
$sql .= " AND w.ref = '".dol_escape_json($websitekey)."'";
$sql .= " ORDER BY wp.fk_default_home DESC, wp.rowid DESC";
$sql .= " ORDER BY wp.tms DESC, wp.rowid DESC";
$resql = $db->query($sql);
if ($resql) {
$num_rows = $db->num_rows($resql);