Added tabs sorting with tab status and ordering

Added tabs sorting with tab status and ordering