Backport autosort for interpolating structures.