If you have 2 (or more) parts in a group, and one of them is in front of the other, sometimes when you duplicate that group (either using duplicate, or copy/paste or Alt+Drag), the copied group will have a part behind another part that was originally in front of it.