{% assign collection = page.collection %} {% assign docs = site.[collection] %} {% if docs %} {% assign sorted_docs = docs | sort:"order","last" %}