 {
    // Show the current sort option
    var queryState = ctx.DataProvider.get_currentQueryState().o;
    if (queryState !== null && queryState.length > 0) {
        var sortName = queryState[0].p;
        var sortDir = queryState[0].d;
        if (!Srch.U.e(sortName)) {
            var elm = document.querySelector('#' + tableId + ' #' + sortName.replace(/ /g, '-'));
            if (elm !== null) {
                elm.parentNode.style.fontWeight = "bold";
                var sortElm = elm.getElementsByCla