If I modify my query that currently looks like this
query: site.find('werkliste')
to that
query: site.find('werkliste').sortBy('jahr', 'desc')
I get the following error in the panel:
… thoughts?
this being the respective blueprint:
title: Werk
columns:
- width: 1/2
sections:
textinformationen:
type: fields
fields:
genre:
help: z. B. Theater/Live-Film
type: text
width: 1/2
icon: tag
ort:
help: z. B. Theater Basel
type: text
width: 1/2
icon: home
placeholder: optional
jahr:
label: Jahr(e)
help: z. B. 2018/2019
type: text
translate: false
width: 1/2
icon: calendar
maxlength: 9
aktualitaet:
label: Aktualität
type: checkboxes
translate: false
width: 1/2
default: aktuell
options:
aktuell: aktuell
help: Wird das Werk noch gezeigt?
beschreibung:
type: writer
marks:
- link
- bold
- italic
nodes: false
credits_personen:
type: structure
label: Credits (Personen)
fields:
rolle:
label: Rolle(n)
type: text
name:
label: Name(n)
type: text
credits_institutionen:
type: writer
marks:
- link
- bold
- italic
nodes: false
label: Credits (Institutionen)
icon: home
help: "z. B. Mit Unterstützung durch den Fachausschuss Tanz & Theater der Kantone Basel-Stadt und Basel-Landschaft."
kritiken:
type: blocks
fieldsets:
- quote
help: "Tipp: Sollte es für dieses Werk in der aktuell ausgewählten Sprache keine Kritiken geben, lösche bitte alle leeren Blöcke, damit auf der Website kein leerer dunkler Kasten angezeigt wird … eigentlich ist es so gebaut, dass das nicht passiert, aber sicher ist sicher 😉"
- width: 1/2
sections:
bilder:
help: "<p>Tipp: Das erste Bild in dieser Liste wird als großformatiges Bild auf der Seite des Werkes angezeigt. Bitte wähle hierfür ein Querformat, idealerweise 16/9.</p><p>Vermeide bitte Kommata in den Namen der Bilddateien, da diese zu Fehlern in der Funktionalität des CMS führen können.</p><p>Du kannst pro Sprache eine eigene Sortierung wählen.</p>"
type: files
template: bild
info: "{{ file.dimensions }}"
layout: cards
size: small
limit: 100
image:
ratio: 1/1
filmlinks:
type: fields
fields:
filme:
label: Videos
help: "Tipp: YouTube- und Vimeo-Links sind möglich.<br><br>Sollte es für dieses Werk in der aktuell ausgewählten Sprache keine Videos geben, lösche bitte alle leeren Blöcke, damit auf der Website kein Weißraum angezeigt wird."
type: blocks
fieldsets:
- video
zusatzinformationen:
type: fields
fields:
line:
type: line
silbentrennung:
help: "<p>z. B. Martin Luther Propaganda&shy;symposium</p><p>Tipp: Falls, speziell in deutschsprachigen Titeln, Wörter zu lang sind, können die Silben dieser Wörter per HTML-Tag <em>&shy;</em> getrennt werden.</p>"
type: text
icon: code
So unfortunately, the solution you suggested doesn’t work…