'bring to front' not permanent

When bringing a text frame to front for placement on a picture,
the text frame keeps appearing in the back of the picture when reopening the file.

Do you save in .doc(x) format? In that case you can lose some formatting details. It shouldn’t happen when you save as .odt.