Fix bug in order update scripts.
Implement properties ordering.