Dictionary ordering in Grid

View: New views
4 Messages — Rating Filter:   Alert me  

Dictionary ordering in Grid

by Szemere Szemere :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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

by Thiago H. de Paula Figueiredo :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Em Thu, 29 Oct 2009 14:23:10 -0200, Szemere Szemere  
<szemereszemere@...> 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@...
For additional commands, e-mail: users-help@...


Re: Dictionary ordering in Grid

by Szemere Szemere :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> 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

by Thiago H. de Paula Figueiredo :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Em Thu, 29 Oct 2009 15:17:21 -0200, Szemere Szemere  
<szemereszemere@...> 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@...
For additional commands, e-mail: users-help@...