Refactor the constant

refactor the constants which also might have cause problem in sort
chrono