Ionic diffusion on a lattice: Effects of the order-disorder transition on the dynamics of non-equilibrium systems