Keep Google Sheets tabs sorted automatically after every edit, by one or more columns, with the header in place. One free Apps Script file.
The script and full instructions are on GitHub: DecodedXR/sheets-auto-sort. It’s MIT licensed and free.