Reorder random factor smooth terms to place factor last
reorder_fs_smooth_terms(smooth)
smooth
an mgcv smooth object