refector sorted_set methods.

 !!! No compatible with previous versions. !!!