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; break;
case 'alpha': case 'alpha':
$sqlQuery->orderBy('tag.name'); $sqlQuery->orderBy('tag.name')->collate()->nocase();
break; break;
} }

View file

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