docs: function orderNodes(ast) {
    var comments  = Array.isArray(ast.comments) ? ast.comments.slice() : [];
    var comparitor = ('sortIndex' in ast) ? compareIndex : compareLocation;
    return comments
      .concat(depthFirst(ast, ast.parent))
      .sort(comparitor)
      .map(setSortIndex);
  }