Tag and user list: a-z order is case insensitive
This commit is contained in:
parent
705e3dfba1
commit
1624fd5f63
2 changed files with 3 additions and 3 deletions
|
@ -73,7 +73,7 @@ class TagSearchService extends AbstractSearchService
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'alpha':
|
case 'alpha':
|
||||||
$sqlQuery->orderBy('tag.name');
|
$sqlQuery->orderBy('tag.name')->collate()->nocase();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -9,10 +9,10 @@ class UserSearchService extends AbstractSearchService
|
||||||
switch ($sortStyle)
|
switch ($sortStyle)
|
||||||
{
|
{
|
||||||
case 'alpha,asc':
|
case 'alpha,asc':
|
||||||
$sqlQuery->orderBy('name')->asc();
|
$sqlQuery->orderBy('name')->collate()->nocase()->asc();
|
||||||
break;
|
break;
|
||||||
case 'alpha,desc':
|
case 'alpha,desc':
|
||||||
$sqlQuery->orderBy('name')->desc();
|
$sqlQuery->orderBy('name')->collate()->nocase()->desc();
|
||||||
break;
|
break;
|
||||||
case 'date,asc':
|
case 'date,asc':
|
||||||
$sqlQuery->orderBy('join_date')->asc();
|
$sqlQuery->orderBy('join_date')->asc();
|
||||||
|
|
Loading…
Reference in a new issue