Updates the internal set. Useful in conjunction with copy() if advanced sorting operations are required on the set - simply use copy() to create a local clone of the set, perform the necessary operations on the clone, then use update() to refresh the structure and contents of the set.