To complete the algorithm it's necessary to apply a SWAP gate between pairs of qubits after all the H and CPhase gate.
You will find more information explained in the next link:
https://qiskit.org/textbook/ch-algorithms/quantum-fourier-transform.html