code: def sscan(self, name, cursor='0', match=None, count=10):
          
          def value_function():
              members = list(self.smembers(name))
              members.sort()  # sort for consistent order
              return members
          return self._common_scan(value_function, cursor=cursor, match=match, count=count)
docs: Emulate sscan.