Tag and user list: a-z order is case insensitive

This commit is contained in:
Marcin Kurczewski 2014-02-19 20:57:53 +01:00
parent 705e3dfba1
commit 1624fd5f63
2 changed files with 3 additions and 3 deletions

View file

@ -73,7 +73,7 @@ class TagSearchService extends AbstractSearchService
break;
case 'alpha':
$sqlQuery->orderBy('tag.name');
$sqlQuery->orderBy('tag.name')->collate()->nocase();
break;
}

View file

@ -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();