That's allowed to happen. And that's because electron configuration doesn't necessitate that you have to order them from lowest energy to highest energy. Although, if in a question and asks you for the proper electron configuration that order things from lowest to highest, then that has to happen. Then this is the proper electron configuration. So ions also can be represented using electron configuration. For example, let's look at sodium plus has eleven protons and ten elections.