code: def sort_file_tabs_alphabetically(self):
          
          while self.sorted() is False:
              for i in range(0, self.tabs.tabBar().count()):
                  if(self.tabs.tabBar().tabText(i) >
                          self.tabs.tabBar().tabText(i + 1)):
                      self.tabs.tabBar().moveTab(i, i + 1)
docs: Sort open tabs alphabetically.