If $A$ is orthogonally diagonalisable, then $D = Q^TAQ.$ Also, $D = Q^TAQ \to A^m = QD^mQ^T$ where $m \in \mathbb Z.$
Since similarity of matrices is an equivalence relation, $D = Q^TAQ \to A = Q^TDQ.$ Thus $A = Q^TDQ = QDQ^T$.
Does that make sense? The reason I ask this question is because while proving another result, I used $Q^TDQ$ instead of $QDQ^T$ so if the equality above holds I don't have to change my proof.