ItemFileReadStore EnhancedGrid localized sorting

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

ItemFileReadStore EnhancedGrid localized sorting

by Muskovics Gábor :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

I have a dojo.data.ItemFileReadStore, and a dojox.grid.EnhancedGrid.
When I click to the header of the grid to sort the content, words
starting with Ö are at the last position, and not after words which
begin with O and before words which begin with P. Is it a bug, or I need
to write a custom sort method?
Thanks:
MG


_______________________________________________
FAQ: http://dojotoolkit.org/support/faq
Book: http://docs.dojocampus.org
Dojo-interest@...
http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest

Re: ItemFileReadStore EnhancedGrid localized sorting

by Nathan Toone-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Sorting is performed by the datastore - and I'm not sure how it handles sorting, but Ö comes later in the game when sorting by character code, I think.

-Nathan

2009/11/6 Muskovics Gábor <egivandor82@...>
Hello,

I have a dojo.data.ItemFileReadStore, and a dojox.grid.EnhancedGrid.
When I click to the header of the grid to sort the content, words
starting with Ö are at the last position, and not after words which
begin with O and before words which begin with P. Is it a bug, or I need
to write a custom sort method?
Thanks:
MG


_______________________________________________
FAQ: http://dojotoolkit.org/support/faq
Book: http://docs.dojocampus.org
Dojo-interest@...
http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest


_______________________________________________
FAQ: http://dojotoolkit.org/support/faq
Book: http://docs.dojocampus.org
Dojo-interest@...
http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest

Parent Message unknown Re: ItemFileReadStore EnhancedGrid localized sorting

by Adam Peller-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Just so we're all talking about the same thing...  the original question probably wasn't about a question mark, right?  Perhaps the iso-8859-1 encoding on this list is adding to the confusion.

On Fri, Nov 6, 2009 at 9:05 AM, Nathan Toone <toonetown@...> wrote:
Sorting is performed by the datastore - and I'm not sure how it handles
sorting, but ? comes later in the game when sorting by character code, I
think.

2009/11/6 Muskovics G?bor <egivandor82@...>

> Hello,
>
> I have a dojo.data.ItemFileReadStore, and a dojox.grid.EnhancedGrid.
> When I click to the header of the grid to sort the content, words
> starting with ? are at the last position, and not after words which
> begin with O and before words which begin with P. Is it a bug, or I need
> to write a custom sort method?
> Thanks:
> MG
>

_______________________________________________
FAQ: http://dojotoolkit.org/support/faq
Book: http://docs.dojocampus.org
Dojo-interest@...
http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest

Re: ItemFileReadStore EnhancedGrid localized sorting

by Muskovics Gábor :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

The question mark was originally an O with umlaut on it (Ö). It's HTML
entity is: Ö
Sorry.
-MG

> Just so we're all talking about the same thing...  the original
> question probably wasn't about a question mark, right?  Perhaps the
> iso-8859-1 encoding on this list is adding to the confusion.


_______________________________________________
FAQ: http://dojotoolkit.org/support/faq
Book: http://docs.dojocampus.org
Dojo-interest@...
http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest

Re: ItemFileReadStore EnhancedGrid localized sorting

by jaredj :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

The store by default just sorts via JavaScript string comparison,
which I think uses char code positioning.  If you want alternate
behavior, define a custom sort function for the attribute in question.

There are examples of custom sorters on:
http://docs.dojocampus.org/dojo/data/ItemFileReadStore


-- Jared


2009/11/6 Muskovics Gábor <egivandor82@...>:

> The question mark was originally an O with umlaut on it (Ö). It's HTML
> entity is: Ö
> Sorry.
> -MG
>
>> Just so we're all talking about the same thing...  the original
>> question probably wasn't about a question mark, right?  Perhaps the
>> iso-8859-1 encoding on this list is adding to the confusion.
>
>
> _______________________________________________
> FAQ: http://dojotoolkit.org/support/faq
> Book: http://docs.dojocampus.org
> Dojo-interest@...
> http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest
>
_______________________________________________
FAQ: http://dojotoolkit.org/support/faq
Book: http://docs.dojocampus.org
Dojo-interest@...
http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest