function compareStars(channel1, channel2) {
    if (channel1.starred < channel2.starred) {
      return 1;
    }
    if (channel1.starred > channel2.starred) {
      return -1;
    }
    // channel 1 must be equal to channel 2
    return 0;
  }
/* New: Definition of compare function to compare stars of the channel in the sort order "starred" before "unstarred" */
Definition of compare function to compare stars of the channel in the sort order "starred" before "unstarred"
Definition of compare function to compare stars of the channel in the sort order " starred " before " unstarred "
function compareStars(channel1, channel2) {
    if (channel1.starred < channel2.starred) {
      return 1;
    }
    if (channel1.starred > channel2.starred) {
      return -1;
    }
    return 0;
  }
function compareStars ( channel1 , channel2 ) { if ( channel1 . starred < channel2 . starred ) { return 1 ; } if ( channel1 . starred > channel2 . starred ) { return - 1 ; } return 0 ; }
New: Definition of compare function to compare stars of the channel in the sort order "starred" before "unstarred"
New : Definition of compare function to compare stars of the channel in the sort order " starred " before " unstarred "
// channel 1 must be equal to channel 2