#How to sort join

2 messages · Page 1 of 1 (latest)

safe current
#

If I have two collections joined as per https://payloadcms.com/docs/fields/join with orderable: true what would be the related payload.find call to retrieve the joined posts in order? I've tried this structure, but I'm not sure what to put against the sort parameter...

await payload.find({
  collection: 'categories',
  joins: {
    caseStudies: {
      sort: 'does something need to go here?',
    },
  },
})
cerulean siloBOT