static/ext/src/util/Sorter.js
function(direction) {
        var me = this;
        me.direction = direction ? direction.toUpperCase() : direction;
        me.updateSortFunction();
    }
function(direction) {
        var me = this;
        me.direction = direction ? direction.toUpperCase() : direction;
        me.updateSortFunction();
    }
Set the sorting direction for this sorter.
@param {String} direction The direction to sort in. Should be either 'ASC' or 'DESC'.