Assign variables in compound assignment in correct order