fdo#81309: Adjust references during sort.

Change-Id: I2b98610f6b774400ecfaffe2905201c27fcab33f
This undo class is no longer used.

Change-Id: I8c53ba5bd839a6b8c8f65f05bb2b261a5bd02dbb