1. #1
    Sencha User
    Join Date
    Sep 2007
    Location
    Gurgaon
    Posts
    34
    Vote Rating
    0
    Sandeep is on a distinguished road

      0  

    Question Grid Sorting does not properly orders the values.

    Grid Sorting does not properly orders the values.


    Hello,

    I am facing a small issue while sorting the gird.
    I have a column which contains some strings, few of them are just empty strings ie. "".

    Example data is:
    ABCD11111
    CN5446991
    NYKU 646300-6
    NYKU 646300-4
    OCLU 123123-2*OCLU 123123-2
    9
    A8
    MANI123654

    The problem is that whenever i click on header of this column the grid gets sorted but it does not sorts as expected.
    It should sort in the order of A-Z but it gives me a random sort, a few "A" strings are at top, then a couple of "B","C","D" and so on strings.
    and again randomly i get "A", "B"... strings at the bottom.

    Can anyone suggest what might be causing this.

    Thanks!
    Sandeep.

  2. #2
    Sencha User fay's Avatar
    Join Date
    Apr 2007
    Location
    Ireland
    Posts
    1,750
    Vote Rating
    9
    fay will become famous soon enough fay will become famous soon enough

      0  

    Default


    Can you post your code please?

  3. #3
    Sencha User
    Join Date
    Mar 2007
    Posts
    186
    Vote Rating
    0
    Nullity is on a distinguished road

      0  

    Default


    When you define the record, make sure to set that column to the correct 'type' (in this case, 'string'). Example:

    Code:
    var record = Ext.data.Record.create([
    	{name: 'id', mapping: 'id', type: 'int'},
    	{name: 'foo', mapping: 'foo', type: 'string'}
    ]);

  4. #4
    Sencha User
    Join Date
    Sep 2007
    Location
    Gurgaon
    Posts
    34
    Vote Rating
    0
    Sandeep is on a distinguished road

      0  

    Default


    Quote Originally Posted by fay View Post
    Can you post your code please?
    Please find attached file.
    Attached Files

Thread Participants: 2

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi