update sorted