update some ordering codes