code: def _get_bin(self, key):
          '''
          Returns a binned dictionary based on redis zscore
  
          @return: The sorted dict
          '''
          # keys based on score
          sortedDict = {}
          # this doesnt return them in order, need to bin first
          for item in self.redis_conn.zscan_iter(key):
              my_item = ujson.loads(item[0])
              # score is negated in redis
              my_score = -item[1]
  
              if my_score not in sortedDict:
                  sortedDict[my_score] = []
  
              sortedDict[my_score].append(my_item)
  
          return sortedDicf _get_bin(self, key):
          '''
          Returns a binned dictionary based on redis zscore
  
          @return: The sorted dict
          '''
          # keys based on score
          sortedDict = {}
          # this doesnt return them in order, need to bin first
          for item in self.redis_conn.zscan_iter(key):
              my_item = ujson.loads(item[0])
              # score is negated in redis
              my_score = -item[1]
  
              if my_score not in sortedDict:
                  sortedDict[my_score] = []
  
              sortedDict[my_score].append(my_item)
  
          return sortedDict
docs: Returns a binned dictionary based on redis zscore
  
          @return: The sorted dict