Besides sorting by date and weight, can we sort by a Param from front matter? Ex:
—
first_name: "John"
last_name: “Smith”
—
I’d like to display all names from the person section and sort by last_name. The code below works, but it also displays blog posts because “sort .Data.Pages “Params.last_name”” is not part of the where condition.
{{ range sort .Data.Pages "Params.last_name" (where .Data.Pages "Section" "person") }}
{{ .Params.last_name }}
{{ end }}