Twig Error: The "sort" filter expects a sequence or a mapping, got "null" in "__string_template__2c96ab50209055b40fe2ac6cb8e71b9a" at line 414. Check in Debugger

{% set post = cms.collection.object("glossary", getData.id ) %} {{ cms.collection.redirectToCanonicalUrl("glossary", post) }}
SAJ Studios | Glossary | {{post.title}}
{% set stackspublish = false %}
{% set post = cms.collection.object("glossary", getData.id ) %} {{ cms.collection.redirectToCanonicalUrl("glossary", post) }}
{% if post.section %} {% set sectionValue = post.section %} {% else %} {% set sectionValue = "main" %} {% endif %}
{% set section = cms.collection.object("sections", sectionValue) %} {% set sectionGallery = cms.data.raw("sections", sectionValue, "gallery") %}
{% if section.state == "Active" %} {% else %}
{{cms.data.svg(sectionValue, {collection: 'sections', property: 'svg'})}}
{% endif %}
{% if section.state == "Active" %} {% else %}
{{cms.data.svg(sectionValue, {collection: 'sections', property: 'svg'})}}
{% endif %}
    {% set stacks_in_16_43 = sectionGallery %} {% for image in stacks_in_16_43 %}
  • {% endfor %}
{% set filters = [ { property : "visible", operator : "istrue", value : "", logic : "or", }, ] %} {% set sorts = [ { property : "sortorder", }, ] %} {% set searching = false %} {% if searching and query | trim is empty %} {# Search Only with nothing searched for yet, or a blank search: no results #} {% set menulist = [] %} {% else %} {# One cached query: the result is kept until the collection is saved #} {% set menulist = cms.collection.query("menus", { filter : filters, sort : sorts, }).objects %} {% endif %}
Menu
{% set theinfotype = 'glossary' %} {% set infotype = cms.collection.object("info-types", theinfotype) %}
{{infotype.svgbw | raw}}
{{infotype.svgbw | raw}}

{{infotype.name}}

{{post.title}}

By Steven Jones

Summary

{{post.summary}}

Details

{{post.content}}
• Posted: {{post.postdate | format_date('medium')}} • Updated: {{post.updatedate | format_date('medium')}}
{% for item in post.category | sort %} {{item | titleize}}   {% else %} {% endfor %}
About
Contact
{% set filters = [ { property : "draft", operator : "isfalse", value : "", logic : "or", }, ] %} {% set sorts = [ { property : "sortorder", }, ] %} {% set searching = false %} {% if searching and query | trim is empty %} {# Search Only with nothing searched for yet, or a blank search: no results #} {% set legaldocuments = [] %} {% else %} {# One cached query: the result is kept until the collection is saved #} {% set legaldocuments = cms.collection.query("legal-documents", { filter : filters, sort : sorts, }).objects %} {% endif %}
{% for item in legaldocuments %}
{{item.title | titleize}}
{% else %} {% endfor %}
{% set searching = false %} {% if searching and query | trim is empty %} {# Search Only with nothing searched for yet, or a blank search: no results #} {% set items = [] %} {% else %} {# One cached query: the result is kept until the collection is saved #} {% set items = cms.collection.query("footer_icons", { }).objects %} {% endif %}
{% for item in items %} {% else %} {% endfor %}
{{ cms.assetsBody() }}