简体   繁体   中英

I want to sort my store in sencha touch facing issues

I have many fields in my object like {id, trackName , mtp , mtpDisplay} I am using below store method to sort data by mtp field.but its setting mtpDisplay to 0.

 renderTodayEntriesView: function (startIndex, endIndex) {
    entriesStore = Ext.getStore('TodaysEntryTrackStore');
    entriesStore.data.sort('mtp','ASC');
   // After this mtpDisplay is settingt to 0
 }

Your problem is similar to this: extjs - Sort store alphanumerically and case insensitively . Implement the function on the first answer and call it whenever you need to sort your data.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM