public SchedulerClient build() {
      final SystemClock clock = new SystemClock();
      TaskResolver taskResolver = new TaskResolver(SchedulerListeners.NOOP, clock, knownTasks);

      final JdbcCustomization jdbcCustomization =
          ofNullable(this.jdbcCustomization)
              .orElseGet(() -> new AutodetectJdbcCustomization(dataSource));

      TaskRepository taskRepository =
          new JdbcTaskRepository(
              dataSource,
              false,
              jdbcCustomization,
              tableName,
              taskResolver,
              new SchedulerClientName(),
              serializer,
              priority,
              clock);

      return new StandardSchedulerClient(taskRepository, clock);
    }
Will cause getScheduledExecutions(..) to return executions in priority order.
db-scheduler/src/main/java/com/github/kagkarlsson/scheduler/SchedulerClient.java