summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Roach <greg@subaqua.co.uk>2020-06-16 12:53:55 +0100
committerGreg Roach <greg@subaqua.co.uk>2020-06-16 12:53:55 +0100
commit85ba39d0fa2bdd8d3be327ba2fda43c897aeaeeb (patch)
treeb96afc84149b0d5c146647159f711d516c0c641d
parent5c073d1cfc71dbac0dbc6c3ea777ebaf3b49a628 (diff)
downloadwebtrees-85ba39d0fa2bdd8d3be327ba2fda43c897aeaeeb.tar.gz
webtrees-85ba39d0fa2bdd8d3be327ba2fda43c897aeaeeb.tar.bz2
webtrees-85ba39d0fa2bdd8d3be327ba2fda43c897aeaeeb.zip
Fix: #3333 - use correct collation sequence to sort place names in control panel
-rw-r--r--app/Http/Controllers/Admin/LocationController.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/Http/Controllers/Admin/LocationController.php b/app/Http/Controllers/Admin/LocationController.php
index 6cf6eda0cf..047b99bb30 100644
--- a/app/Http/Controllers/Admin/LocationController.php
+++ b/app/Http/Controllers/Admin/LocationController.php
@@ -177,7 +177,7 @@ class LocationController extends AbstractAdminController
$rows = DB::table('placelocation')
->where('pl_parent_id', '=', $id)
- ->orderBy('pl_place')
+ ->orderBy(new Expression('pl_place /*! COLLATE ' . I18N::collation() . ' */'))
->get();
$list = [];
@@ -523,7 +523,7 @@ class LocationController extends AbstractAdminController
// Data for the next level.
$rows = DB::table('placelocation')
->where('pl_parent_id', '=', $parent_id)
- ->orderBy('pl_place')
+ ->orderBy(new Expression('pl_place /*! COLLATE ' . I18N::collation() . ' */'))
->get();
foreach ($rows as $row) {