Having looked at your data, it strikes me that the codes ending in 'X' actually mean something else. In my experience, users tend to adapt codes to represent data if they can't get the functionality they want.
I would check with your users why exactly they want the X to come first - if, say ...