function processTwitterData(data) {
  const result = data.sort((a, b) => {
    return (b.retweet_count - a.retweet_count);
  }).slice(0, 5);

  return result;   // {data[index].retweet_count}, {.text}, {.user.screen_name}
}
// extract the top 5 most retweeted tweets with selected hashtag
extract the top 5 most retweeted tweets with selected hashtag
extract the top 5 most retweeted tweets with selected hashtag
function processTwitterData(data) {
  const result = data.sort((a, b) => {
    return (b.retweet_count - a.retweet_count);
  }).slice(0, 5);
  return result;   
}
function processTwitterData ( data ) { const result = data . sort ( ( a , b ) => { return ( b . retweet_count - a . retweet_count ) ; } ) . slice ( 0 , 5 ) ; return result ; }
extract the top 5 most retweeted tweets with selected hashtag
extract the top 5 most retweeted tweets with selected hashtag
// {data[index].retweet_count}, {.text}, {.user.screen_name}