Fix random sorting parameter breakage for sf=