Skip to content

Commit

Permalink
Switch to sorting/grouping by lastName.
Browse files Browse the repository at this point in the history
  • Loading branch information
nelstrom committed Dec 23, 2010
1 parent 6ee5457 commit dcda0ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions public/javascripts/data.js
Expand Up @@ -4,9 +4,9 @@ Ext.regModel('Contact', {

demos.ListStore = new Ext.data.Store({
model: 'Contact',
sorters: 'firstName',
sorters: 'lastName',
getGroupString : function(record) {
return record.get('firstName')[0];
return record.get('lastName')[0];
},
data: [
{ firstName: 'Julio', lastName: 'Benesh'},
Expand Down

0 comments on commit dcda0ef

Please sign in to comment.