Reorders scripts.