Added tabs sorting with tab status and ordering