code: def _config_sortable(self, sortable):
          
          for col in self["columns"]:
              command = (lambda c=col: self._sort_column(c, True)) if sortable else ""
              self.heading(col, command=command)
          self._sortable = sortable
docs: Configure a new sortable state