Order the state codes correctly.