diff --git a/htdocs/website/index.php b/htdocs/website/index.php
index 6e290e28eca..e89409190be 100644
--- a/htdocs/website/index.php
+++ b/htdocs/website/index.php
@@ -3447,6 +3447,10 @@ if ($action == 'replacesite' || $action == 'replacesiteconfirm')
if (GETPOST('optioncontent')) $algo .= 'content';
if (GETPOST('optionsitefiles')) $algo .= 'sitefiles';
+ if (empty($sortfield)) {
+ $sortfield = 'pageurl'; $sortorder = 'ASC';
+ }
+
$listofpages = getPagesFromSearchCriterias('', $algo, $searchkey, 1000, $sortfield, $sortorder);
print '
';
@@ -3481,7 +3485,7 @@ if ($action == 'replacesite' || $action == 'replacesiteconfirm')
print '