'Returns the list of entities for this result in key order.'

def Entities(self):

    if (self.direction == key_range_module.KeyRange.ASC):
        return list(self.entities)
    else:
        result = list(self.entities)
        result.reverse()
        return result
