Initialize header sort function.

def _init_hdrgo_sortby(self, hdrgo_sortby, sortby):
        """Initialize header sort function."""
        if hdrgo_sortby is not None:
            return hdrgo_sortby
        if sortby is not None:
            return sortby
        return self.sortby