Changes the order of the tabs in a tabs element.
The orderTabs()
function changes the order in which tab menu items are displayed. It reorders the array contained in the tabs
property.
The tab elements, or the tab IDs without a preceding # character, in the desired new order. Tab elements and IDs can be mixed. The array must include each element (or its ID) once, otherwise the tabs are not reordered.