code: def _init_hdrgo_sortby(self, hdrgo_sortby, sortby):
          if hdrgo_sortby is not None:
              return hdrgo_sortby
          if sortby is not None:
              return sortby
          return self.sortby