Created
November 15, 2012 12:29
-
-
Save noroot/4078414 to your computer and use it in GitHub Desktop.
Extjs: How to set default data sort
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var myStore = new Ext.data.JsonStore({ | |
fields: ['Item1', 'Item2', 'Item3', 'Item4'] | |
, data: [] | |
, sortOnLoad: true | |
, sorters: { property: 'Item1', direction : 'DESC' } | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment