Invalidate previous sorting if sortProperties changes.