code: def zscan(self, name, cursor='0', match=None, count=10):
          
          def value_function():
              values = self.zrange(name, 0, -1, withscores=True)
              values.sort(key=lambda x: x[1])  # sort for consistent order
              return values
          return self._common_scan(value_function, cursor=cursor, match=match, count=count, key=lambda v: v[0])
docs: Emulate zscan.