lib/helpers.js
function() {
    var allTags = [];
    
    for (var key in this.posts) {
      if (this.posts[key].tags) {
        for (var i = 0; i < this.posts[key].tags.length; i++) {
          var tag = this.posts[key].tags[i];
          if (allTags.indexOf(tag) === -1) allTags.push(tag);
        }
      }
    }

    allTags.sort(function(a, b) {
      a = a.toLowerCase();
      b = b.toLowerCase();
      if (a < b) return -1;
      if (a > b) return 1;
      return 0;
    });

    return allTags;
  }
function() {
    var allTags = [];
    
    for (var key in this.posts) {
      if (this.posts[key].tags) {
        for (var i = 0; i < this.posts[key].tags.length; i++) {
          var tag = this.posts[key].tags[i];
          if (allTags.indexOf(tag) === -1) allTags.push(tag);
        }
      }
    }

    allTags.sort(function(a, b) {
      a = a.toLowerCase();
      b = b.toLowerCase();
      if (a < b) return -1;
      if (a > b) return 1;
      return 0;
    });

    return allTags;
  }
function ( ) { var allTags = [ ] ; for ( var key in this . posts ) { if ( this . posts [ key ] . tags ) { for ( var i = 0 ; i < this . posts [ key ] . tags . length ; i ++ ) { var tag = this . posts [ key ] . tags [ i ] ; if ( allTags . indexOf ( tag ) === - 1 ) allTags . push ( tag ) ; } } } allTags . sort ( function ( a , b ) { a = a . toLowerCase ( ) ; b = b . toLowerCase ( ) ; if ( a < b ) return - 1 ; if ( a > b ) return 1 ; return 0 ; } ) ; return allTags ; }
Returns unique sorted tags for every post.

@return {Array}
Returns unique sorted tags for every post .