в принципе решение нарисовалось без ajax
<script>
var str_href = {
sort_byDir:"asc",
sort_byName: "Наименование"
}
$('#sort_hover_byDir').on('beforehide', function () {
str_href.sort_byDir = this.getElementsByClassName('uk-active')[0].textContent;
document.getElementById('sort_click_byDir').getElementsByClassName('uk-active')[0].getElementsByTagName('a')[0].setAttribute("href","?byDir=" + str_href.sort_byDir + "&byName=" + str_href.sort_byName);
});
$('#sort_hover_byName').on('beforehide', function () {
str_href.sort_byName = this.getElementsByClassName('uk-active')[0].textContent;
document.getElementById('sort_click_byName').getElementsByClassName('uk-active')[0].getElementsByTagName('a')[0].setAttribute("href","?byDir=" + str_href.sort_byDir + "&byName=" + str_href.sort_byName);
});
</script>
или можно проще?