Probable improvment to sorted block observer

Adding before deleting on a sorted array may cause problems if the same
value is both added and deleted. Adding after ensures that it is not
destroyed by the previous delete.