From 1468bc3a1426c7b0857bfb58fb2007242f10056c Mon Sep 17 00:00:00 2001 From: ildyria Date: Wed, 5 Aug 2026 23:45:40 +0200 Subject: [PATCH] notes on sorting --- ...6_08_05_000000_add_sorting_description.php | 34 +++++++++++++++++++ lang/ar/all_settings.php | 2 +- lang/bg/all_settings.php | 2 +- lang/cz/all_settings.php | 2 +- lang/de/all_settings.php | 2 +- lang/el/all_settings.php | 2 +- lang/en/all_settings.php | 2 +- lang/es/all_settings.php | 2 +- lang/fa/all_settings.php | 2 +- lang/fr/all_settings.php | 2 +- lang/hu/all_settings.php | 2 +- lang/it/all_settings.php | 2 +- lang/ja/all_settings.php | 2 +- lang/nl/all_settings.php | 2 +- lang/no/all_settings.php | 2 +- lang/pl/all_settings.php | 2 +- lang/pt/all_settings.php | 2 +- lang/ru/all_settings.php | 2 +- lang/sk/all_settings.php | 2 +- lang/sv/all_settings.php | 2 +- lang/tr/all_settings.php | 2 +- lang/vi/all_settings.php | 2 +- lang/zh_CN/all_settings.php | 2 +- lang/zh_TW/all_settings.php | 2 +- 24 files changed, 57 insertions(+), 23 deletions(-) create mode 100644 database/migrations/2026_08_05_000000_add_sorting_description.php diff --git a/database/migrations/2026_08_05_000000_add_sorting_description.php b/database/migrations/2026_08_05_000000_add_sorting_description.php new file mode 100644 index 00000000000..3f46f7c1a9d --- /dev/null +++ b/database/migrations/2026_08_05_000000_add_sorting_description.php @@ -0,0 +1,34 @@ +where('cat', 'Gallery')->update(['description' => 'Important: Natural sorting and lexicographical sorting can produce different results.
Natural: img_1, img_2, img_10.
Lexicographical: img_1, img_10, img_2.
Lexicographical sorting is performed directly in the database, while natural sorting is performed in PHP after the database query runs. As a result, when natural sorting is combined with pagination, results are fetched from the database in an arbitrary order before being sorted, which can lead to unexpected results when browsing through pages. We recommend using natural sorting for a small number of photos, and lexicographical sorting for a large number of photos. Alternatively, you can prefix your numbers with 0s (e.g. img_01, img_02, img_10) so that both sorting methods produce the same result.
']); + } + + /** + * Reverse the migrations. + * + * @codeCoverageIgnore Tested but after CI run... + */ + final public function down(): void + { + DB::table('config_categories')->where('cat', 'Gallery')->update(['description' => '']); + } +}; diff --git a/lang/ar/all_settings.php b/lang/ar/all_settings.php index eed34e36683..83b0245d573 100644 --- a/lang/ar/all_settings.php +++ b/lang/ar/all_settings.php @@ -836,7 +836,7 @@ 'category_description' => [ 'config' => '', 'lychee SE' => 'افتح كامل إمكانيات Lychee مع النسخة الداعمة (Supporter Edition). احصل على ميزات حصرية وادعم تطوير Lychee. قم برعاية LycheeOrg على GitHub واحصل على مفتاح الترخيص الخاص بك من هنا.', - 'Gallery' => '', + 'Gallery' => 'Important: Natural sorting and lexicographical sorting can produce different results.
Natural: img_1, img_2, img_10.
Lexicographical: img_1, img_10, img_2.
Lexicographical sorting is performed directly in the database, while natural sorting is performed in PHP after the database query runs. As a result, when natural sorting is combined with pagination, results are fetched from the database in an arbitrary order before being sorted, which can lead to unexpected results when browsing through pages. We recommend using natural sorting for a small number of photos, and lexicographical sorting for a large number of photos. Alternatively, you can prefix your numbers with 0s (e.g. img_01, img_02, img_10) so that both sorting methods produce the same result.
', 'Mod Welcome' => 'تُفعّل هذه الوحدة صفحة هبوط. فبدلاً من الوصول مباشرة إلى عرض المعرض، تضيف هذه الصفحة لمسة من الفخامة إلى مدخل الموقع. أدخل رابط الصورة المراد عرضها وحدد العنوان.', 'Footer' => '', 'Smart Albums' => '', diff --git a/lang/bg/all_settings.php b/lang/bg/all_settings.php index c80ca189e42..031f3da4d98 100644 --- a/lang/bg/all_settings.php +++ b/lang/bg/all_settings.php @@ -832,7 +832,7 @@ 'category_description' => [ 'config' => '', 'lychee SE' => 'Отключете пълните възможности на Lychee със Supporter Edition. Вземете ексклузивни функции и подкрепете разработката на Lychee. Станете спонсор на LycheeOrg в GitHub и вземете вашия лицензионен ключ тук.', - 'Gallery' => '', + 'Gallery' => 'Important: Natural sorting and lexicographical sorting can produce different results.
Natural: img_1, img_2, img_10.
Lexicographical: img_1, img_10, img_2.
Lexicographical sorting is performed directly in the database, while natural sorting is performed in PHP after the database query runs. As a result, when natural sorting is combined with pagination, results are fetched from the database in an arbitrary order before being sorted, which can lead to unexpected results when browsing through pages. We recommend using natural sorting for a small number of photos, and lexicographical sorting for a large number of photos. Alternatively, you can prefix your numbers with 0s (e.g. img_01, img_02, img_10) so that both sorting methods produce the same result.
', 'Mod Welcome' => 'Този модул активира начална страница. Вместо да попадате директно в изгледа на галерията, той добавя малко тържественост при влизането в уебсайта. Предоставете URL адреса на изображението, което да се показва, и задайте заглавие.', 'Footer' => '', 'Smart Albums' => '', diff --git a/lang/cz/all_settings.php b/lang/cz/all_settings.php index 455b7230407..675888b9f27 100644 --- a/lang/cz/all_settings.php +++ b/lang/cz/all_settings.php @@ -836,7 +836,7 @@ 'category_description' => [ 'config' => '', 'lychee SE' => 'Unlock the full capabilities of Lychee with the Supporter Edition. Get exclusive features and support the development of Lychee. Sponsor LycheeOrg on GitHub and get your License key here.', - 'Gallery' => '', + 'Gallery' => 'Important: Natural sorting and lexicographical sorting can produce different results.
Natural: img_1, img_2, img_10.
Lexicographical: img_1, img_10, img_2.
Lexicographical sorting is performed directly in the database, while natural sorting is performed in PHP after the database query runs. As a result, when natural sorting is combined with pagination, results are fetched from the database in an arbitrary order before being sorted, which can lead to unexpected results when browsing through pages. We recommend using natural sorting for a small number of photos, and lexicographical sorting for a large number of photos. Alternatively, you can prefix your numbers with 0s (e.g. img_01, img_02, img_10) so that both sorting methods produce the same result.
', 'Mod Welcome' => 'This module enables a landing page. Instead of arriving directly to the gallery view, it adds a bit of grandiose to the website entrance. Provide the url of the picture to be displayed and set the title.', 'Footer' => '', 'Smart Albums' => '', diff --git a/lang/de/all_settings.php b/lang/de/all_settings.php index d8bff8d02bc..2b222b80149 100644 --- a/lang/de/all_settings.php +++ b/lang/de/all_settings.php @@ -832,7 +832,7 @@ 'category_description' => [ 'config' => '', 'lychee SE' => 'Schalten Sie den vollen Funktionsumfang von Lychee mit der Supporter Edition frei. Erhalten Sie exklusive Funktionen und unterstützen Sie die Weiterentwicklung von Lychee. Werden Sie Sponsor von LycheeOrg auf GitHub und erhalten Sie Ihren Lizenzschlüssel hier.', - 'Gallery' => '', + 'Gallery' => 'Important: Natural sorting and lexicographical sorting can produce different results.
Natural: img_1, img_2, img_10.
Lexicographical: img_1, img_10, img_2.
Lexicographical sorting is performed directly in the database, while natural sorting is performed in PHP after the database query runs. As a result, when natural sorting is combined with pagination, results are fetched from the database in an arbitrary order before being sorted, which can lead to unexpected results when browsing through pages. We recommend using natural sorting for a small number of photos, and lexicographical sorting for a large number of photos. Alternatively, you can prefix your numbers with 0s (e.g. img_01, img_02, img_10) so that both sorting methods produce the same result.
', 'Mod Welcome' => 'Dieses Modul aktiviert eine Landingpage. Statt direkt in der Galerieansicht zu landen, verleiht sie dem Eingang Ihrer Website etwas mehr Glanz. Geben Sie die URL des anzuzeigenden Bildes an und legen Sie den Titel fest.', 'Footer' => '', 'Smart Albums' => '', diff --git a/lang/el/all_settings.php b/lang/el/all_settings.php index 44054de4d29..5c29cd5d1db 100644 --- a/lang/el/all_settings.php +++ b/lang/el/all_settings.php @@ -836,7 +836,7 @@ 'category_description' => [ 'config' => '', 'lychee SE' => 'Unlock the full capabilities of Lychee with the Supporter Edition. Get exclusive features and support the development of Lychee. Sponsor LycheeOrg on GitHub and get your License key here.', - 'Gallery' => '', + 'Gallery' => 'Important: Natural sorting and lexicographical sorting can produce different results.
Natural: img_1, img_2, img_10.
Lexicographical: img_1, img_10, img_2.
Lexicographical sorting is performed directly in the database, while natural sorting is performed in PHP after the database query runs. As a result, when natural sorting is combined with pagination, results are fetched from the database in an arbitrary order before being sorted, which can lead to unexpected results when browsing through pages. We recommend using natural sorting for a small number of photos, and lexicographical sorting for a large number of photos. Alternatively, you can prefix your numbers with 0s (e.g. img_01, img_02, img_10) so that both sorting methods produce the same result.
', 'Mod Welcome' => 'This module enables a landing page. Instead of arriving directly to the gallery view, it adds a bit of grandiose to the website entrance. Provide the url of the picture to be displayed and set the title.', 'Footer' => '', 'Smart Albums' => '', diff --git a/lang/en/all_settings.php b/lang/en/all_settings.php index f26b43c7b66..5a0c1e5daed 100644 --- a/lang/en/all_settings.php +++ b/lang/en/all_settings.php @@ -836,7 +836,7 @@ 'category_description' => [ 'config' => '', 'lychee SE' => 'Unlock the full capabilities of Lychee with the Supporter Edition. Get exclusive features and support the development of Lychee. Sponsor LycheeOrg on GitHub and get your License key here.', - 'Gallery' => '', + 'Gallery' => 'Important: Natural sorting and lexicographical sorting can produce different results.
Natural: img_1, img_2, img_10.
Lexicographical: img_1, img_10, img_2.
Lexicographical sorting is performed directly in the database, while natural sorting is performed in PHP after the database query runs. As a result, when natural sorting is combined with pagination, results are fetched from the database in an arbitrary order before being sorted, which can lead to unexpected results when browsing through pages. We recommend using natural sorting for a small number of photos, and lexicographical sorting for a large number of photos. Alternatively, you can prefix your numbers with 0s (e.g. img_01, img_02, img_10) so that both sorting methods produce the same result.
', 'Mod Welcome' => 'This module enables a landing page. Instead of arriving directly to the gallery view, it adds a bit of grandiose to the website entrance. Provide the url of the picture to be displayed and set the title.', 'Footer' => '', 'Smart Albums' => '', diff --git a/lang/es/all_settings.php b/lang/es/all_settings.php index 9e375c839e1..e3058dc5851 100644 --- a/lang/es/all_settings.php +++ b/lang/es/all_settings.php @@ -832,7 +832,7 @@ 'category_description' => [ 'config' => '', 'lychee SE' => 'Aprovecha todas las funciones de Lychee con la Edición para patrocinadores. Disfruta de funciones exclusivas y apoya el desarrollo de Lychee. Patrocina a LycheeOrg en GitHub y consigue tu clave de licencia aquí.', - 'Gallery' => '', + 'Gallery' => 'Important: Natural sorting and lexicographical sorting can produce different results.
Natural: img_1, img_2, img_10.
Lexicographical: img_1, img_10, img_2.
Lexicographical sorting is performed directly in the database, while natural sorting is performed in PHP after the database query runs. As a result, when natural sorting is combined with pagination, results are fetched from the database in an arbitrary order before being sorted, which can lead to unexpected results when browsing through pages. We recommend using natural sorting for a small number of photos, and lexicographical sorting for a large number of photos. Alternatively, you can prefix your numbers with 0s (e.g. img_01, img_02, img_10) so that both sorting methods produce the same result.
', 'Mod Welcome' => 'Este módulo permite crear una página de bienvenida. En lugar de acceder directamente a la vista de la galería, aporta un toque de solemnidad a la entrada del sitio web. Introduce la URL de la imagen que se va a mostrar y configura el título.', 'Footer' => '', 'Smart Albums' => '', diff --git a/lang/fa/all_settings.php b/lang/fa/all_settings.php index 1a2cff45325..a7caf2003ae 100644 --- a/lang/fa/all_settings.php +++ b/lang/fa/all_settings.php @@ -836,7 +836,7 @@ 'category_description' => [ 'config' => '', 'lychee SE' => 'با نسخه Supporter Edition قابلیت‌های کامل Lychee را باز کنید. ویژگی‌های اختصاصی دریافت کنید و از توسعه Lychee حمایت کنید. از LycheeOrg در گیت‌هاب حمایت مالی کنید و کلید مجوز خود را اینجا دریافت کنید.', - 'Gallery' => '', + 'Gallery' => 'Important: Natural sorting and lexicographical sorting can produce different results.
Natural: img_1, img_2, img_10.
Lexicographical: img_1, img_10, img_2.
Lexicographical sorting is performed directly in the database, while natural sorting is performed in PHP after the database query runs. As a result, when natural sorting is combined with pagination, results are fetched from the database in an arbitrary order before being sorted, which can lead to unexpected results when browsing through pages. We recommend using natural sorting for a small number of photos, and lexicographical sorting for a large number of photos. Alternatively, you can prefix your numbers with 0s (e.g. img_01, img_02, img_10) so that both sorting methods produce the same result.
', 'Mod Welcome' => 'این ماژول یک صفحه فرود را فعال می‌کند. به‌جای ورود مستقیم به نمای گالری، کمی شکوه به ورودی وب‌سایت می‌افزاید. نشانی تصویری که باید نمایش داده شود را وارد کرده و عنوان را تنظیم کنید.', 'Footer' => '', 'Smart Albums' => '', diff --git a/lang/fr/all_settings.php b/lang/fr/all_settings.php index df3ddee0011..ff1dfab5d13 100644 --- a/lang/fr/all_settings.php +++ b/lang/fr/all_settings.php @@ -832,7 +832,7 @@ 'category_description' => [ 'config' => '', 'lychee SE' => 'Débloquez toutes les capacités de Lychee grâce à l’édition Supporter. Bénéficiez de fonctionnalités exclusives et soutenez le développement de Lychee. Parrainez LycheeOrg sur GitHub et obtenez votre clé de licence ici.', - 'Gallery' => '', + 'Gallery' => 'Important: Natural sorting and lexicographical sorting can produce different results.
Natural: img_1, img_2, img_10.
Lexicographical: img_1, img_10, img_2.
Lexicographical sorting is performed directly in the database, while natural sorting is performed in PHP after the database query runs. As a result, when natural sorting is combined with pagination, results are fetched from the database in an arbitrary order before being sorted, which can lead to unexpected results when browsing through pages. We recommend using natural sorting for a small number of photos, and lexicographical sorting for a large number of photos. Alternatively, you can prefix your numbers with 0s (e.g. img_01, img_02, img_10) so that both sorting methods produce the same result.
', 'Mod Welcome' => 'Ce module active une page d\'accueil. Au lieu d\'accéder directement à la galerie, il ajoute une touche de grandeur à l\'entrée du site web. Indiquez l\'URL de l\'image à afficher et définissez le titre.', 'Footer' => '', 'Smart Albums' => '', diff --git a/lang/hu/all_settings.php b/lang/hu/all_settings.php index 60bbf4889f3..f0f3e5b5b83 100644 --- a/lang/hu/all_settings.php +++ b/lang/hu/all_settings.php @@ -836,7 +836,7 @@ 'category_description' => [ 'config' => '', 'lychee SE' => 'Unlock the full capabilities of Lychee with the Supporter Edition. Get exclusive features and support the development of Lychee. Sponsor LycheeOrg on GitHub and get your License key here.', - 'Gallery' => '', + 'Gallery' => 'Important: Natural sorting and lexicographical sorting can produce different results.
Natural: img_1, img_2, img_10.
Lexicographical: img_1, img_10, img_2.
Lexicographical sorting is performed directly in the database, while natural sorting is performed in PHP after the database query runs. As a result, when natural sorting is combined with pagination, results are fetched from the database in an arbitrary order before being sorted, which can lead to unexpected results when browsing through pages. We recommend using natural sorting for a small number of photos, and lexicographical sorting for a large number of photos. Alternatively, you can prefix your numbers with 0s (e.g. img_01, img_02, img_10) so that both sorting methods produce the same result.
', 'Mod Welcome' => 'This module enables a landing page. Instead of arriving directly to the gallery view, it adds a bit of grandiose to the website entrance. Provide the url of the picture to be displayed and set the title.', 'Footer' => '', 'Smart Albums' => '', diff --git a/lang/it/all_settings.php b/lang/it/all_settings.php index 34a787c2469..43c34e29ab5 100644 --- a/lang/it/all_settings.php +++ b/lang/it/all_settings.php @@ -836,7 +836,7 @@ 'category_description' => [ 'config' => '', 'lychee SE' => 'Unlock the full capabilities of Lychee with the Supporter Edition. Get exclusive features and support the development of Lychee. Sponsor LycheeOrg on GitHub and get your License key here.', - 'Gallery' => '', + 'Gallery' => 'Important: Natural sorting and lexicographical sorting can produce different results.
Natural: img_1, img_2, img_10.
Lexicographical: img_1, img_10, img_2.
Lexicographical sorting is performed directly in the database, while natural sorting is performed in PHP after the database query runs. As a result, when natural sorting is combined with pagination, results are fetched from the database in an arbitrary order before being sorted, which can lead to unexpected results when browsing through pages. We recommend using natural sorting for a small number of photos, and lexicographical sorting for a large number of photos. Alternatively, you can prefix your numbers with 0s (e.g. img_01, img_02, img_10) so that both sorting methods produce the same result.
', 'Mod Welcome' => 'This module enables a landing page. Instead of arriving directly to the gallery view, it adds a bit of grandiose to the website entrance. Provide the url of the picture to be displayed and set the title.', 'Footer' => '', 'Smart Albums' => '', diff --git a/lang/ja/all_settings.php b/lang/ja/all_settings.php index e09826b4d42..f3c0000beb7 100644 --- a/lang/ja/all_settings.php +++ b/lang/ja/all_settings.php @@ -836,7 +836,7 @@ 'category_description' => [ 'config' => '', 'lychee SE' => 'Unlock the full capabilities of Lychee with the Supporter Edition. Get exclusive features and support the development of Lychee. Sponsor LycheeOrg on GitHub and get your License key here.', - 'Gallery' => '', + 'Gallery' => 'Important: Natural sorting and lexicographical sorting can produce different results.
Natural: img_1, img_2, img_10.
Lexicographical: img_1, img_10, img_2.
Lexicographical sorting is performed directly in the database, while natural sorting is performed in PHP after the database query runs. As a result, when natural sorting is combined with pagination, results are fetched from the database in an arbitrary order before being sorted, which can lead to unexpected results when browsing through pages. We recommend using natural sorting for a small number of photos, and lexicographical sorting for a large number of photos. Alternatively, you can prefix your numbers with 0s (e.g. img_01, img_02, img_10) so that both sorting methods produce the same result.
', 'Mod Welcome' => 'This module enables a landing page. Instead of arriving directly to the gallery view, it adds a bit of grandiose to the website entrance. Provide the url of the picture to be displayed and set the title.', 'Footer' => '', 'Smart Albums' => '', diff --git a/lang/nl/all_settings.php b/lang/nl/all_settings.php index f3d51076e59..b70dd04342e 100644 --- a/lang/nl/all_settings.php +++ b/lang/nl/all_settings.php @@ -836,7 +836,7 @@ 'category_description' => [ 'config' => '', 'lychee SE' => 'Ontgrendel alle mogelijkheden van Lychee met de Supporter Edition. Krijg exclusieve functies en steun de ontwikkeling van Lychee. Sponsor LycheeOrg op GitHub en ontvang uw licentiesleutel hier.', - 'Gallery' => '', + 'Gallery' => 'Important: Natural sorting and lexicographical sorting can produce different results.
Natural: img_1, img_2, img_10.
Lexicographical: img_1, img_10, img_2.
Lexicographical sorting is performed directly in the database, while natural sorting is performed in PHP after the database query runs. As a result, when natural sorting is combined with pagination, results are fetched from the database in an arbitrary order before being sorted, which can lead to unexpected results when browsing through pages. We recommend using natural sorting for a small number of photos, and lexicographical sorting for a large number of photos. Alternatively, you can prefix your numbers with 0s (e.g. img_01, img_02, img_10) so that both sorting methods produce the same result.
', 'Mod Welcome' => 'Deze module schakelt een landingspagina in. In plaats van direct in de galerijweergave te komen, voegt dit wat grandeur toe aan de ingang van de website. Geef de URL op van de afbeelding die getoond moet worden en stel de titel in.', 'Footer' => '', 'Smart Albums' => '', diff --git a/lang/no/all_settings.php b/lang/no/all_settings.php index 91b8440fc66..1a8e7362eac 100644 --- a/lang/no/all_settings.php +++ b/lang/no/all_settings.php @@ -832,7 +832,7 @@ 'category_description' => [ 'config' => '', 'lychee SE' => 'Lås opp de fulle funksjonene i Lychee med Supporter Edition. Få eksklusive funksjoner og støtt utviklingen av Lychee. Sponsoer LycheeOrg på GitHub og få lisensnøkkelen din her.', - 'Gallery' => '', + 'Gallery' => 'Important: Natural sorting and lexicographical sorting can produce different results.
Natural: img_1, img_2, img_10.
Lexicographical: img_1, img_10, img_2.
Lexicographical sorting is performed directly in the database, while natural sorting is performed in PHP after the database query runs. As a result, when natural sorting is combined with pagination, results are fetched from the database in an arbitrary order before being sorted, which can lead to unexpected results when browsing through pages. We recommend using natural sorting for a small number of photos, and lexicographical sorting for a large number of photos. Alternatively, you can prefix your numbers with 0s (e.g. img_01, img_02, img_10) so that both sorting methods produce the same result.
', 'Mod Welcome' => 'Denne modulen aktiverer en landingsside. I stedet for å komme direkte til galleriet, gir den inngangen til nettstedet et snev av storslagenhet. Oppgi URL-en til bildet som skal vises, og angi tittelen.', 'Footer' => '', 'Smart Albums' => '', diff --git a/lang/pl/all_settings.php b/lang/pl/all_settings.php index 113d2b1fd55..aefe7d3fc87 100644 --- a/lang/pl/all_settings.php +++ b/lang/pl/all_settings.php @@ -836,7 +836,7 @@ 'category_description' => [ 'config' => '', 'lychee SE' => 'Unlock the full capabilities of Lychee with the Supporter Edition. Get exclusive features and support the development of Lychee. Sponsor LycheeOrg on GitHub and get your License key here.', - 'Gallery' => '', + 'Gallery' => 'Important: Natural sorting and lexicographical sorting can produce different results.
Natural: img_1, img_2, img_10.
Lexicographical: img_1, img_10, img_2.
Lexicographical sorting is performed directly in the database, while natural sorting is performed in PHP after the database query runs. As a result, when natural sorting is combined with pagination, results are fetched from the database in an arbitrary order before being sorted, which can lead to unexpected results when browsing through pages. We recommend using natural sorting for a small number of photos, and lexicographical sorting for a large number of photos. Alternatively, you can prefix your numbers with 0s (e.g. img_01, img_02, img_10) so that both sorting methods produce the same result.
', 'Mod Welcome' => 'This module enables a landing page. Instead of arriving directly to the gallery view, it adds a bit of grandiose to the website entrance. Provide the url of the picture to be displayed and set the title.', 'Footer' => '', 'Smart Albums' => '', diff --git a/lang/pt/all_settings.php b/lang/pt/all_settings.php index 02616fe9505..005343fd794 100644 --- a/lang/pt/all_settings.php +++ b/lang/pt/all_settings.php @@ -836,7 +836,7 @@ 'category_description' => [ 'config' => '', 'lychee SE' => 'Unlock the full capabilities of Lychee with the Supporter Edition. Get exclusive features and support the development of Lychee. Sponsor LycheeOrg on GitHub and get your License key here.', - 'Gallery' => '', + 'Gallery' => 'Important: Natural sorting and lexicographical sorting can produce different results.
Natural: img_1, img_2, img_10.
Lexicographical: img_1, img_10, img_2.
Lexicographical sorting is performed directly in the database, while natural sorting is performed in PHP after the database query runs. As a result, when natural sorting is combined with pagination, results are fetched from the database in an arbitrary order before being sorted, which can lead to unexpected results when browsing through pages. We recommend using natural sorting for a small number of photos, and lexicographical sorting for a large number of photos. Alternatively, you can prefix your numbers with 0s (e.g. img_01, img_02, img_10) so that both sorting methods produce the same result.
', 'Mod Welcome' => 'This module enables a landing page. Instead of arriving directly to the gallery view, it adds a bit of grandiose to the website entrance. Provide the url of the picture to be displayed and set the title.', 'Footer' => '', 'Smart Albums' => '', diff --git a/lang/ru/all_settings.php b/lang/ru/all_settings.php index 81bafe62273..798954a80fd 100644 --- a/lang/ru/all_settings.php +++ b/lang/ru/all_settings.php @@ -836,7 +836,7 @@ 'category_description' => [ 'config' => '', 'lychee SE' => 'Unlock the full capabilities of Lychee with the Supporter Edition. Get exclusive features and support the development of Lychee. Sponsor LycheeOrg on GitHub and get your License key here.', - 'Gallery' => '', + 'Gallery' => 'Important: Natural sorting and lexicographical sorting can produce different results.
Natural: img_1, img_2, img_10.
Lexicographical: img_1, img_10, img_2.
Lexicographical sorting is performed directly in the database, while natural sorting is performed in PHP after the database query runs. As a result, when natural sorting is combined with pagination, results are fetched from the database in an arbitrary order before being sorted, which can lead to unexpected results when browsing through pages. We recommend using natural sorting for a small number of photos, and lexicographical sorting for a large number of photos. Alternatively, you can prefix your numbers with 0s (e.g. img_01, img_02, img_10) so that both sorting methods produce the same result.
', 'Mod Welcome' => 'This module enables a landing page. Instead of arriving directly to the gallery view, it adds a bit of grandiose to the website entrance. Provide the url of the picture to be displayed and set the title.', 'Footer' => '', 'Smart Albums' => '', diff --git a/lang/sk/all_settings.php b/lang/sk/all_settings.php index 016d4011bdf..57af665d209 100644 --- a/lang/sk/all_settings.php +++ b/lang/sk/all_settings.php @@ -836,7 +836,7 @@ 'category_description' => [ 'config' => '', 'lychee SE' => 'Unlock the full capabilities of Lychee with the Supporter Edition. Get exclusive features and support the development of Lychee. Sponsor LycheeOrg on GitHub and get your License key here.', - 'Gallery' => '', + 'Gallery' => 'Important: Natural sorting and lexicographical sorting can produce different results.
Natural: img_1, img_2, img_10.
Lexicographical: img_1, img_10, img_2.
Lexicographical sorting is performed directly in the database, while natural sorting is performed in PHP after the database query runs. As a result, when natural sorting is combined with pagination, results are fetched from the database in an arbitrary order before being sorted, which can lead to unexpected results when browsing through pages. We recommend using natural sorting for a small number of photos, and lexicographical sorting for a large number of photos. Alternatively, you can prefix your numbers with 0s (e.g. img_01, img_02, img_10) so that both sorting methods produce the same result.
', 'Mod Welcome' => 'This module enables a landing page. Instead of arriving directly to the gallery view, it adds a bit of grandiose to the website entrance. Provide the url of the picture to be displayed and set the title.', 'Footer' => '', 'Smart Albums' => '', diff --git a/lang/sv/all_settings.php b/lang/sv/all_settings.php index a53b97cb8ad..007b99a8b7a 100644 --- a/lang/sv/all_settings.php +++ b/lang/sv/all_settings.php @@ -836,7 +836,7 @@ 'category_description' => [ 'config' => '', 'lychee SE' => 'Unlock the full capabilities of Lychee with the Supporter Edition. Get exclusive features and support the development of Lychee. Sponsor LycheeOrg on GitHub and get your License key here.', - 'Gallery' => '', + 'Gallery' => 'Important: Natural sorting and lexicographical sorting can produce different results.
Natural: img_1, img_2, img_10.
Lexicographical: img_1, img_10, img_2.
Lexicographical sorting is performed directly in the database, while natural sorting is performed in PHP after the database query runs. As a result, when natural sorting is combined with pagination, results are fetched from the database in an arbitrary order before being sorted, which can lead to unexpected results when browsing through pages. We recommend using natural sorting for a small number of photos, and lexicographical sorting for a large number of photos. Alternatively, you can prefix your numbers with 0s (e.g. img_01, img_02, img_10) so that both sorting methods produce the same result.
', 'Mod Welcome' => 'This module enables a landing page. Instead of arriving directly to the gallery view, it adds a bit of grandiose to the website entrance. Provide the url of the picture to be displayed and set the title.', 'Footer' => '', 'Smart Albums' => '', diff --git a/lang/tr/all_settings.php b/lang/tr/all_settings.php index 42bb01b4b85..276744515f4 100644 --- a/lang/tr/all_settings.php +++ b/lang/tr/all_settings.php @@ -833,7 +833,7 @@ 'category_description' => [ 'config' => '', 'lychee SE' => 'Unlock the full capabilities of Lychee with the Supporter Edition. Get exclusive features and support the development of Lychee. Sponsor LycheeOrg on GitHub and get your License key here.', - 'Gallery' => '', + 'Gallery' => 'Important: Natural sorting and lexicographical sorting can produce different results.
Natural: img_1, img_2, img_10.
Lexicographical: img_1, img_10, img_2.
Lexicographical sorting is performed directly in the database, while natural sorting is performed in PHP after the database query runs. As a result, when natural sorting is combined with pagination, results are fetched from the database in an arbitrary order before being sorted, which can lead to unexpected results when browsing through pages. We recommend using natural sorting for a small number of photos, and lexicographical sorting for a large number of photos. Alternatively, you can prefix your numbers with 0s (e.g. img_01, img_02, img_10) so that both sorting methods produce the same result.
', 'Mod Welcome' => 'This module enables a landing page. Instead of arriving directly to the gallery view, it adds a bit of grandiose to the website entrance. Provide the url of the picture to be displayed and set the title.', 'Footer' => '', 'Smart Albums' => '', diff --git a/lang/vi/all_settings.php b/lang/vi/all_settings.php index f9b5c6d0e10..1aac5b37479 100644 --- a/lang/vi/all_settings.php +++ b/lang/vi/all_settings.php @@ -836,7 +836,7 @@ 'category_description' => [ 'config' => '', 'lychee SE' => 'Unlock the full capabilities of Lychee with the Supporter Edition. Get exclusive features and support the development of Lychee. Sponsor LycheeOrg on GitHub and get your License key here.', - 'Gallery' => '', + 'Gallery' => 'Important: Natural sorting and lexicographical sorting can produce different results.
Natural: img_1, img_2, img_10.
Lexicographical: img_1, img_10, img_2.
Lexicographical sorting is performed directly in the database, while natural sorting is performed in PHP after the database query runs. As a result, when natural sorting is combined with pagination, results are fetched from the database in an arbitrary order before being sorted, which can lead to unexpected results when browsing through pages. We recommend using natural sorting for a small number of photos, and lexicographical sorting for a large number of photos. Alternatively, you can prefix your numbers with 0s (e.g. img_01, img_02, img_10) so that both sorting methods produce the same result.
', 'Mod Welcome' => 'This module enables a landing page. Instead of arriving directly to the gallery view, it adds a bit of grandiose to the website entrance. Provide the url of the picture to be displayed and set the title.', 'Footer' => '', 'Smart Albums' => '', diff --git a/lang/zh_CN/all_settings.php b/lang/zh_CN/all_settings.php index 2eb6b5a3a5c..f0086560fbb 100644 --- a/lang/zh_CN/all_settings.php +++ b/lang/zh_CN/all_settings.php @@ -836,7 +836,7 @@ 'category_description' => [ 'config' => '', 'lychee SE' => 'Unlock the full capabilities of Lychee with the Supporter Edition. Get exclusive features and support the development of Lychee. Sponsor LycheeOrg on GitHub and get your License key here.', - 'Gallery' => '', + 'Gallery' => 'Important: Natural sorting and lexicographical sorting can produce different results.
Natural: img_1, img_2, img_10.
Lexicographical: img_1, img_10, img_2.
Lexicographical sorting is performed directly in the database, while natural sorting is performed in PHP after the database query runs. As a result, when natural sorting is combined with pagination, results are fetched from the database in an arbitrary order before being sorted, which can lead to unexpected results when browsing through pages. We recommend using natural sorting for a small number of photos, and lexicographical sorting for a large number of photos. Alternatively, you can prefix your numbers with 0s (e.g. img_01, img_02, img_10) so that both sorting methods produce the same result.
', 'Mod Welcome' => 'This module enables a landing page. Instead of arriving directly to the gallery view, it adds a bit of grandiose to the website entrance. Provide the url of the picture to be displayed and set the title.', 'Footer' => '', 'Smart Albums' => '', diff --git a/lang/zh_TW/all_settings.php b/lang/zh_TW/all_settings.php index dfb82f7a390..e84618f1e63 100644 --- a/lang/zh_TW/all_settings.php +++ b/lang/zh_TW/all_settings.php @@ -836,7 +836,7 @@ 'category_description' => [ 'config' => '', 'lychee SE' => 'Unlock the full capabilities of Lychee with the Supporter Edition. Get exclusive features and support the development of Lychee. Sponsor LycheeOrg on GitHub and get your License key here.', - 'Gallery' => '', + 'Gallery' => 'Important: Natural sorting and lexicographical sorting can produce different results.
Natural: img_1, img_2, img_10.
Lexicographical: img_1, img_10, img_2.
Lexicographical sorting is performed directly in the database, while natural sorting is performed in PHP after the database query runs. As a result, when natural sorting is combined with pagination, results are fetched from the database in an arbitrary order before being sorted, which can lead to unexpected results when browsing through pages. We recommend using natural sorting for a small number of photos, and lexicographical sorting for a large number of photos. Alternatively, you can prefix your numbers with 0s (e.g. img_01, img_02, img_10) so that both sorting methods produce the same result.
', 'Mod Welcome' => 'This module enables a landing page. Instead of arriving directly to the gallery view, it adds a bit of grandiose to the website entrance. Provide the url of the picture to be displayed and set the title.', 'Footer' => '', 'Smart Albums' => '',