Order the scriptlets logically.