You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Szemere Szemere <sz...@googlemail.com> on 2009/10/29 17:23:10 UTC

Dictionary ordering in Grid

The ordering in Grid sorts by character value (uppercase before lowercase),
not by dictionary order e.g.
ADrian
Aardvark
Adrian

Is there an easy way to change this?

Szemere

Re: Dictionary ordering in Grid

Posted by "Thiago H. de Paula Figueiredo" <th...@gmail.com>.
Em Thu, 29 Oct 2009 15:17:21 -0200, Szemere Szemere  
<sz...@googlemail.com> escreveu:

> I think however that it would be natural to use dictionary order as the
> default ordering. Do others agree?

That's a good thing for a JIRA. :)

-- 
Thiago H. de Paula Figueiredo
Independent Java consultant, developer, and instructor
http://www.arsmachina.com.br/thiago

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Dictionary ordering in Grid

Posted by Szemere Szemere <sz...@googlemail.com>.
> I guess you're using a List or a Collection as the grid's source.
Yes.

Thanks for the suggestion, I will take a look at it.

I think however that it would be natural to use dictionary order as the
default ordering. Do others agree?

Szemere

Re: Dictionary ordering in Grid

Posted by "Thiago H. de Paula Figueiredo" <th...@gmail.com>.
Em Thu, 29 Oct 2009 14:23:10 -0200, Szemere Szemere  
<sz...@googlemail.com> escreveu:

> The ordering in Grid sorts by character value (uppercase before  
> lowercase), not by dictionary order e.g.
> ADrian
> Aardvark
> Adrian

I guess you're using a List or a Collection as the grid's source.
Outside a Grid, you can do String comparisons using localized (per-locale)  
rules using a Collator. You can copy CollectionGridDataSource and change  
its sorting to sort strings using a Collator.

-- 
Thiago H. de Paula Figueiredo
Independent Java consultant, developer, and instructor
http://www.arsmachina.com.br/thiago

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org