re-order object just to make sure that the keys are sorted