1. #1
    Sencha User
    Join Date
    Jul 2012
    Location
    Pune, India
    Posts
    7
    Vote Rating
    0
    amritmishra is on a distinguished road

      0  

    Default Sencha Touch list store diable sorting.

    Sencha Touch list store diable sorting.


    I have my list which is getting data from php service, the data received is in the order I need. But sencha automatically sort my list alphabetically. Below is my code :

    http://stackoverflow.com/questions/1...35801#13235801

    I want my list to be grouped according to the group_label, but not sorted.

  2. #2
    Sencha Premium Member
    Join Date
    Feb 2012
    Location
    Berne, Switzerland
    Posts
    714
    Vote Rating
    42
    ingo.hefti has a spectacular aura about ingo.hefti has a spectacular aura about ingo.hefti has a spectacular aura about

      0  

    Default


    I think I once managed to do this by adding a sortProperty to a grouper. It shouldn't be an existing field so it will not find anything to sort. Hope this still works...
    Code:
    grouper: {
        sortProperty: 'thisIsAnInexstingField',
        groupFn: function (record) {
            return record.data.group_label;
        }
    }

  3. #3
    Sencha User
    Join Date
    Jul 2012
    Location
    Pune, India
    Posts
    7
    Vote Rating
    0
    amritmishra is on a distinguished road

      0  

    Default


    Hmm its seems to affect the list, but not completely. I am still getting the list sorted in some weird manner like: numbers first, then alphabetically.

  4. #4
    Sencha User
    Join Date
    Jul 2012
    Location
    Pune, India
    Posts
    7
    Vote Rating
    0
    amritmishra is on a distinguished road

      0  

    Default


    I got the solution :
    adding
    remoteSort : true,
    to the store is fixing the issue.

Thread Participants: 1

Tags for this Thread

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