Changed the update semantics to perform a sort when values are updated.