code: func activeInvQuery(c context.Context, j *Job, lastScanned int64) *invListQuery {
  	var invs []*Invocation
  	for _, id := range j.ActiveInvocations {
  		if id > lastScanned {
  			invs = append(invs, &Invocation{ID: id})
  		}
  	}
  	sort.Slice(invs, func(l, r int) bool { return invs[l].ID < invs[r].ID })
  	return &invListQuery{invs: invs}
  }
docs: // activeInvQuery returns invQuery that emits active invocations, as fetched
  // from the job.ActiveInvocations field.
  //
  // Smallest IDs are returned first. IDs smaller than or equal to lastScanned are
  // skipped (this is used for pagination).