Sort divs dynamically

Sort divs dynamically


I'm developing a portfolio site using jquery masonry.

What I would like to do is dynamically sort the divs dynamically without a page refresh.
So I want all divs to show initially, then a user can show/hide divs when selecting options (i.e. - print design, web design, etc.).

I haven't seen a method out there for this in my travels, so does anyone have any ideas?