Sort Order in queries

run this query to pull all meetings but it lists them oldest first... how can I just the sort order

${query[[
from p = tags.mtg
select templates.pageItem(p)
order by ?????
]]}

This should do it:

${query[[
  from p = tags.mtg
  order by p.lastModified desc
  select templates.pageItem(p)
]]}

thank you. works... is there a resource that explains the objects and their properties so I can figure out these queries myself?

Generally there's this for pages: page but it's not super in depth. It does show an example query with all default attributes though.