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;
|
||||
|
||||
case 'alpha':
|
||||
$sqlQuery->orderBy('tag.name');
|
||||
$sqlQuery->orderBy('tag.name')->collate()->nocase();
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
|
@ -9,10 +9,10 @@ class UserSearchService extends AbstractSearchService
|
|||
switch ($sortStyle)
|
||||
{
|
||||
case 'alpha,asc':
|
||||
$sqlQuery->orderBy('name')->asc();
|
||||
$sqlQuery->orderBy('name')->collate()->nocase()->asc();
|
||||
break;
|
||||
case 'alpha,desc':
|
||||
$sqlQuery->orderBy('name')->desc();
|
||||
$sqlQuery->orderBy('name')->collate()->nocase()->desc();
|
||||
break;
|
||||
case 'date,asc':
|
||||
$sqlQuery->orderBy('join_date')->asc();
|
||||
|
|
Loading…
Reference in a new issue