I know that you can set the sortDir property on an Ext.data.field instance, but is there a way to override this value across the board?
After nothing working I've then thrown all kinds of variations (below) at it, but when clicking a grid column header, the first sort is always ASC. I'll be missing something obvious, what is it?
Code:
Ext.data.Field.override({
sortDir: 'DESC'
});
Ext.data.Field.sortDir = 'DESC';
Ext.data.Field.addStatics({
sortDir: 'DESC'
});
Ext.data.Field.implement({
sortDir: 'DESC'
});
Ext.util.Sortable.override({
defaultSortDirection: 'DESC'
});
Ext.util.Sortable.defaultSortDirection = 'DESC';
Ext.util.Sortable.addStatics({
defaultSortDirection: 'DESC'
});
Ext.util.Sortable.implement({
defaultSortDirection: 'DESC'
});