Yosef Karo, Translation:Shulchan Aruch — Orach Chaim 457…
“ This is done by putting all of the matzos in a basket, and the basket groups them together with regards to hallah. This is the best way. Rem"a: If the matzo had the minimum quantity for hallah, but one forgot to separate, he should separate afterwards, and the basket grouping is not necessary. ”
