fix number code ordering