trying to sort the masonry jquery plugin like vgrid plugin
heres the test page http://syndicutsite.syndicut.com/index2.htm
what i want to do is when the filters are clicked is sort the items so they alternate by there height.
in the vgrid plugin they have this code , any ideas how i can add this to masonry
'vgsort: function(func, easeing, time, delay)
{ var _obj = $(this); if(_obj.data("_vgchild")) { _obj.data("_vgchild", _obj.data("_vgchild").sort(func)); _obj.data("_vgchild").each(function(num){ $(this).appendTo(_obj); }); makePos(_obj); animateTo( _obj.data("_vgchild"), easeing || _obj.data("_vgopt").easeing || "linear", typeof(time)=="number" ? time : _obj.data("_vgopt").time || 500, typeof(delay)=="number" ? delay : _obj.data("_vgopt").delay || 0 ); } return _obj; }`