$(function() {
    $.ajax({
        url: '{{MEDIA_URL}}js/sort_lib.js',
        dataType: 'script',
        cache: true,
        success: function() {
            $("span[id$='repo-list-name-down'], span[id$='repo-list-name-up']").on('click',sort_lib_by_name);
            $("span[id$='repo-list-time-down'], span[id$='repo-list-time-up']").on('click',sort_lib_by_time);
        }
    });
});
