I made Drupal.behaviors.navTab
to ignore secondary tabs, so these aren't re ordered to show the active element first. Since secondary tabs aren't collapsible, this could probably work regarding a11y issues.
No changes between 3210435-consistent-navigation-violation and 9.4.x