Update sort_order.