@Override
    public <T> void fetchScheduledExecutionsForTask(
        String taskName,
        Class<T> dataClass,
        ScheduledExecutionsFilter filter,
        Consumer<ScheduledExecution<T>> consumer) {
      taskRepository.getScheduledExecutions(
          filter,
          taskName,
          execution -> consumer.accept(new ScheduledExecution<>(dataClass, execution)));
    }
Will cause getScheduledExecutions(..) to return executions in priority order.
db-scheduler/src/main/java/com/github/kagkarlsson/scheduler/SchedulerClient.java