code: def setup_table(self):
          
          self.horizontalHeader().setStretchLastSection(True)
          self.adjust_columns()
          self.columnAt(0)
          # Sorting columns
          self.setSortingEnabled(False)
          self.sortByColumn(0, Qt.DescendingOrder)
docs: Setup table