Skip to main content

sort

Sort the result with the specified field.

const { data, error } = await microgen.service('posts').find({
sort: [{ name: 1 }],
})
note
  • Ascending = 1
  • Descending = -1