Tailoring the magnetic states by controlling octahedral cation arrangement in double perovskite