changeSort(sort) {
        const params = this.params();

        if (sort === app.forum.attribute('userDirectoryDefaultSort')) {
            delete params.sort;
        } else {
            params.sort = sort;
        }

        m.route.set(app.route(this.attrs.routeName, params));
    }
/**
     * Redirect to the index page using the given sort parameter.
     *
     * @param {String} sort
     */
Redirect to the index page using the given sort parameter.
@param {String} sort
Redirect to the index page using the given sort parameter . @param { String } sort
changeSort(sort) {
        const params = this.params();
        if (sort === app.forum.attribute('userDirectoryDefaultSort')) {
            delete params.sort;
        } else {
            params.sort = sort;
        }
        m.route.set(app.route(this.attrs.routeName, params));
    }
changeSort ( sort ) { const params = this . params ( ) ; if ( sort === app . forum . attribute ( 'userDirectoryDefaultSort' ) ) { delete params . sort ; } else { params . sort = sort ; } m . route . set ( app . route ( this . attrs . routeName , params ) ) ; }
Redirect to the index page using the given sort parameter.
Redirect to the index page using the given sort parameter .