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