if (typeof Mxm == 'undefined') {
    var Mxm = {};
}

Mxm.ListSorter = {

    redirectTo : function (url) {

    },

    urlBySortChoice : function () {
        var sortSelect = $('sort-by-select');

        if (sortSelect.options[sortSelect.selectedIndex].value !== '') {

            var url = window.location.href;

            //there is already get params
            if (url.indexOf('?') != -1) {
                sep = '&';
            }
            //no get params
            else {
                sep = '?';
            }

            window.location.href = url + sep + sortSelect.options[sortSelect.selectedIndex].value;
        }
    }
};

