Using sortBy in Blueprint does not work

In a blueprint I have items (courses with dates) defined with a startdate (startdatum). I try to show these items in the panel sorted by startdate. But wherever I put my sortBy: startdatum I can’t get the panel to sort the items.
(Kirby 4.5)

First I have a blueprint for the page:

#/site/blueprints/pages/reiki_data.yml

title: Reiki data
icon: text
options:
  changeStatus: true

sections:
  content:
    type: fields
    fields:
      Reiki1:
        type: blocks
        label: Reiki 1
        width: 1/2
        fieldsets:
          - reikicursus
  
      Reiki2:
        label: Reiki 2
        type: blocks
        width: 1/2
        fieldsets:
          - reikicursus

Then I have a blueprint for the block type:

#/site/plugins/reikicursussen/blueprints/reikicursus.yml
name: reikicursus
icon: heart
title: Reiki Cursus
preview: reikicursus
wysiwyg: true
sortBy: startdatum
fields:
  startdatum:
    label: Eerste dag
    type: date
    showday: true
    time: false
    display: DD-MM-YY
  einddatum:
    label: Tweede dag
    type: date
    showday: true
    time: false
    display: DD-MM-YY
  cursus_vol:
    label: Vol
    type: toggle
    default: false
    text:
      - "niet vol"
      - "vol"

This is the index.php in the plugin

<?php
Kirby::plugin('rlb/reikicursus', [
    'blueprints' => [
        'blocks/reikicursus'          => __DIR__ . '/blueprints/blocks/reikicursus.yml',
        'blocks/reikicursuspreview'   => __DIR__ . '/blueprints/blocks/reikicursuspreview.yml'
    ]
]);

And I have a index.js for this plugin as well.
If you need it, I will add it.

Questions

  • Should it be possible to sort the items in this case?
  • Where would I put the sortBy in this case. I have put it everywhere, but had no luck.
  • Is there something missing maybe in the code (index.js) so it will not listen to sortBy
  • Is it maybe because blocks cannot be sorted?

I have read a lot of documentation about this, but had no luck in finding something pointing to a solution. I hope you can help!

If you need more information, please ask.
Thanks, René

This is it. There is no sortBy option for the blocks field: Blocks | Kirby CMS

Blocks are usually rather used for curated content where manual sorting makes most sense. I think most people would rather work with subpages for events (or similar) that should be sorted in different ways (e.g. by date).