$('#someElement').sortGrid({1}, {2}, {3});
Clicking on one of the navigation links will sort the boxes based on the corresponding class name.
Back to Article
jQuery(function($){
$(".nav li a").live("click", function(e){
e.preventDefault();
var el = $(this);
if(!el.parent().hasClass("active")){
el.parent().addClass("active").siblings().removeClass("active");
$(".boxes").sortGrid(el.attr("rel"), 1000);
}
});
});