code: public void add(@Nonnull Iterable<T> runItems, @Nonnull List<Queue.Item> queueItems) {
          sort(queueItems);
          addInternal(Iterables.concat(queueItems, runItems));
      }
docs: Add run items and queued items to the History page.
  
  @param runItems The items to be added. Assumes the items are in descending queue ID order i.e. newest first.
  @param queueItems The queue items to be added. Queue items do not need to be sorted.
  @since 2.17