unit test for sheet and in-range range references after sort, fdo#79441

Change-Id: I09327866a92b1f53a7c0a76c38cf79856390d69a