FIX permute_order:  keep order the same when permuting model