docs: function(pids) {
    
    var sequence_length = pids[0].seq.length;
    
    var sequence = [];
    
    var sPids = pids.sortBy(function(e){
      return e.seq.count(1);
    },true);
    
    for (var i = 0; i < sequence_length + 1; i++) {
      sPids.forEach(function(e){
        if( e.seq[i] == 1 ) {
          sequence.push(e.pid);
        }
      });
    };
    
    return sequence;
  }