var availableSorts = ctx.DataProvider.get_availableSorts();
    var indexArray = availableSorts.map(function(o){return o.name;});
    var currentPropIdx = indexArray.indexOf(prop+"ASC");
    return currentPropIdx === -1 ? true : false;
}

function CheckUnsortableProperty (prop) {
    if (typeof ctx.DataProvider.Unsortable !== "undefined") {
        var unsortableProps = ctx.DataProvider.Unsortable;
        return unsortableProps.indexOf(prop) === -1 ? true : false;
    } else {
        return true;
    }
}
