Skip to main content

sort

Sort the result with the specified field.

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