simpler, use tsort rather than masonry/isotope. seems more reliable.