src/aria/widgets/action/SortIndicator.js
function (cfg) {
            if (cfg.view.sortName == cfg.sortName) {
                if (cfg.view.sortOrder == 'A') {
                    return this.ASCENDING_STATE;
                } else if (cfg.view.sortOrder == 'D') {
                    return this.DESCENDING_STATE;
                }
            } else {
                return this.NORMAL_STATE;
            }
        }
function (cfg) {
            if (cfg.view.sortName == cfg.sortName) {
                if (cfg.view.sortOrder == 'A') {
                    return this.ASCENDING_STATE;
                } else if (cfg.view.sortOrder == 'D') {
                    return this.DESCENDING_STATE;
                }
            } else {
                return this.NORMAL_STATE;
            }
        }
function ( cfg ) { if ( cfg . view . sortName == cfg . sortName ) { if ( cfg . view . sortOrder == 'A' ) { return this . ASCENDING_STATE ; } else if ( cfg . view . sortOrder == 'D' ) { return this . DESCENDING_STATE ; } } else { return this . NORMAL_STATE ; } }
Internal method to set the initial _state property from the _cfg description based on the config properties
@protected
@param {Object} cfg Config properties
@return {String} new state
Internal method to set the initial _state property from the _cfg description based on the config properties