moves mods to the beginning of the parameter list