Filter by Type and sort

I need to make a list of content of ‘Type’ event, and sort byParam at the same time.

I have the following:
{{ range (and (where $.Site.RegularPages "Type" "event") ($.Site.RegularPages.ByParam "startdate"))}}

This worked for sorting, but this is also showing another content type ‘meeting’

How could this be achieved?


An alternative way of doing it. See if this works:

{{ range .RegularPages.ByParam "startdate" }}
  {{ if eq .Type "event" }}
  {{ end }} 
{{ end }}

I had to make it:
{{ range $.Site…RegularPages.ByParam “startdate” }}
{{ if eq .Type “event” }}

{{ end }}
{{ end }}

But then this works. thanks