How to determine which row/column is in "front" when overlapping?

When overlapping two rows or columns using negative margins, how do you control which row or column is in “front”? I can’t find information about this anywhere. Thank you!