Add method to create sorted set.