Bug: Fixes sorting in both users and profiles list.

* Does the sorting case-insensitive.
   * Inserts the ascending sorting icon in the interface to inform about the
   default sorting being used.
This commit is contained in:
Javier Moran Rua 2012-08-19 13:13:12 +02:00
parent 5fd977ffcf
commit f87ae59560
2 changed files with 4 additions and 2 deletions

View file

@ -23,7 +23,8 @@
<newdatasortablegrid id="listing" model="@{controller.profiles}" mold="paging"
pageSize="10" sclass="clickable-rows">
<columns sizable="true">
<newdatasortablecolumn label="${i18n:_('Profile name')}" sort="auto(profileName)" />
<newdatasortablecolumn label="${i18n:_('Profile name')}"
sort="auto(lower(profileName))" sortDirection="ascending"/>
<newdatasortablecolumn label="${i18n:_('Actions')}" />
</columns>
<rows>

View file

@ -24,7 +24,8 @@
pageSize="10" sclass="clickable-rows"
rowRenderer="@{controller.usersRenderer}">
<columns sizable="true">
<newdatasortablecolumn label="${i18n:_('Username')}" sort="auto(loginName)" />
<newdatasortablecolumn label="${i18n:_('Username')}"
sort="auto(lower(loginName))" sortDirection="ascending"/>
<newdatasortablecolumn label="${i18n:_('Disabled')}" />
<newdatasortablecolumn label="${i18n:_('Superuser')}" />
<newdatasortablecolumn label="${i18n:_('Authentication type')}" />