code: def _get_sorted_go2nt(self, go2nt, sortby):
          
          if sortby is True:
              _fnc = self.get_fncsortnt()
              return sorted(go2nt.items(), key=lambda t: _fnc(t[1]))
          if sortby:
              return sorted(go2nt.items(), key=lambda t: sortby(t[1]))
          return go2nt.items()
docs: Return sorted list of tuples.