diff --git a/system/src/Grav/Common/Page/Pages.php b/system/src/Grav/Common/Page/Pages.php index 3d9762684a..a7657dff1a 100644 --- a/system/src/Grav/Common/Page/Pages.php +++ b/system/src/Grav/Common/Page/Pages.php @@ -1259,7 +1259,7 @@ protected function buildSort($path, array $pages, $order_by = 'default', $manual if ($col) { if (($sort_flags & SORT_NATURAL) === SORT_NATURAL) { $list = preg_replace_callback('~([0-9]+)\.~', function($number) { - return sprintf('%032d', $number); + return sprintf('%032d', $number[0]); }, $list); }