sortByAudible() {
    const audible = [];
    const muted = [];
    const rest = [];

    this.tabList.forEach(tab => {
      if (tab.audible) {
        if (tab.muted) {
          muted.push(tab);
        } else {
          audible.push(tab);
        }
      } else {
        rest.push(tab);
      }
    });

    this.tabList = [...audible, ...muted, ...rest];
  }
/**
   * stable sort for audible tabs followed by muted followed by inaudible
   */
stable sort for audible tabs followed by muted followed by inaudible
stable sort for audible tabs followed by muted followed by inaudible
sortByAudible() {
    const audible = [];
    const muted = [];
    const rest = [];
    this.tabList.forEach(tab => {
      if (tab.audible) {
        if (tab.muted) {
          muted.push(tab);
        } else {
          audible.push(tab);
        }
      } else {
        rest.push(tab);
      }
    });
    this.tabList = [...audible, ...muted, ...rest];
  }
sortByAudible ( ) { const audible = [ ] ; const muted = [ ] ; const rest = [ ] ; this . tabList . forEach ( tab => { if ( tab . audible ) { if ( tab . muted ) { muted . push ( tab ) ; } else { audible . push ( tab ) ; } } else { rest . push ( tab ) ; } } ) ; this . tabList = [ ... audible , ... muted , ... rest ] ; }
stable sort for audible tabs followed by muted followed by inaudible
stable sort for audible tabs followed by muted followed by inaudible