Using the Isotope plugin, I am trying to achieve a sorting system where, by clicking an item, groups are formed by positioning items of the same type after the clicked item.
Isotope's sort/filter functions don't seem designed for this purpose, so my initial approach was to rearrange the DOM using .insertAfter and then firing 'reLayout'.
However, it seems that after initialization the DOM order isn't relevant and nothing short of destroying and re-initializing Isotope works, but that causes undesirable scroll position jumps.
(See: http://jsfiddle.net/owenhoskins/r7MgY/10896/)
Is there are way to update Isotope based on DOM structure without a re-init?
Or, is it conceivable to interface with the sort/filter functions to achieve this aim?
Thanks in advance, Owen