function sortafter(tmp0, tmp1, ext)

total_rows = uint32(size(IntzBefore,1));

ext(2500:end-2501,15:16) = tmp0(1:end,2:3);