我试图通过belongsToMany关系订购。我想通过event.getSubscriptions() 查询返回firstName的表的列进行排序。Subscriptions这是我现在所处的位置:
return event.getSubscriptions({
where: {
id: {
$ne: event.currentUserId
}
},
order: // I would like to order by the Subscription.firstName column
})
我该怎么做呢?
提前致谢!