Update sort index