relateditems: store in correct order