sencha touch :: how to make store sorter ignore if first letter is small or capitalized <p>I wonder how to make store sorters ignore if the first letter of a name is small or capitalized? I want to have the list items with the same first letter be grouped together or at least having the small first letter beneath the capitalized and not like it is initially first having a list ob capitalized names and the following the list of small first letters.</p> <p>I found something like</p> <pre><code>var sorter = new Ext.util.Sorter({ property : 'myField', sorterFn: function(o1, o2) { // compare o1 and o2 } }); var store = new Ext.data.Store({ model: 'myModel', sorters: [sorter] }); store.sort(); </code></pre> <p>which could be usefull.</p> <p>thanx!</p> <p>edit: this seems to work:</p> <pre><code>var mySubStore = app.stores.myStore.findRecord('id', recordID).websites(); app.stores.myStore.findRecord('id', recordID).websites().getGroupString = function(instance) { return instance.get('name')[0].toUpperCase(); }; var sorter = new Ext.util.Sorter({ property : 'name', sorterFn: function(o1, o2) { var v1 = this.getRoot(o1).get(this.property).toLowerCase(), v2 = this.getRoot(o2).get(this.property).toLowerCase(); return v1 &gt; v2 ? 1 : (v1 &lt; v2 ? -1 : 0); }, clear: function(){} }); //mySubStore.sorters = [sorter]; mySubStore.sort(sorter); </code></pre>