fdo#85215: Ensure that formula broadcasting works after sort.

When the reference update on sort is turned off.

Change-Id: I547dd1525a638dd447fe331e22583af4a7947308
fdo#85215: Write test for this.

Change-Id: I789da5d81e6211ed8f5fae1e293833bde5ce375b