src/aria/templates/View.js
function () {
                var sortKeyGetter = this.sortKeyGetter;
                var items = this.items;
                var itemsLength = items.length;
                for (var i = 0; i < itemsLength; i++) {
                    var elt = items[i];
                    elt.sortKey = sortKeyGetter.fn.call(sortKeyGetter.scope, elt, sortKeyGetter.args);
                }
                items.sort(this.sortOrder == this.SORT_ASCENDING
                        ? __ascendingSortingFunction
                        : __descendingSortingFunction);
                var curState = this._currentState;
                curState.sortKeyGetter = this.sortKeyGetter;
                curState.sortOrder = this.sortOrder;
                curState.sortName = this.sortName;
                this._changes = this._changes | this._CHANGED_PAGE_DATA;
            }
function () {
                var sortKeyGetter = this.sortKeyGetter;
                var items = this.items;
                var itemsLength = items.length;
                for (var i = 0; i < itemsLength; i++) {
                    var elt = items[i];
                    elt.sortKey = sortKeyGetter.fn.call(sortKeyGetter.scope, elt, sortKeyGetter.args);
                }
                items.sort(this.sortOrder == this.SORT_ASCENDING
                        ? __ascendingSortingFunction
                        : __descendingSortingFunction);
                var curState = this._currentState;
                curState.sortKeyGetter = this.sortKeyGetter;
                curState.sortOrder = this.sortOrder;
                curState.sortName = this.sortName;
                this._changes = this._changes | this._CHANGED_PAGE_DATA;
            }
function ( ) { var sortKeyGetter = this . sortKeyGetter ; var items = this . items ; var itemsLength = items . length ; for ( var i = 0 ; i < itemsLength ; i ++ ) { var elt = items [ i ] ; elt . sortKey = sortKeyGetter . fn . call ( sortKeyGetter . scope , elt , sortKeyGetter . args ) ; } items . sort ( this . sortOrder == this . SORT_ASCENDING ? __ascendingSortingFunction : __descendingSortingFunction ) ; var curState = this . _currentState ; curState . sortKeyGetter = this . sortKeyGetter ; curState . sortOrder = this . sortOrder ; curState . sortName = this . sortName ; this . _changes = this . _changes | this . _CHANGED_PAGE_DATA ; }
Sort this.items according to this.sortKeyGetter and this.sortOrder. Should not be called if
this.sortOrder == this.SORT_INITIAL. Call _resetSortOrder instead.
@protected
Sort this . items according to this . sortKeyGetter and this . sortOrder . Should not be called if this . sortOrder == this . SORT_INITIAL . Call _resetSortOrder instead .