Create a new version of a record if a sorting field changes (see #6285)