标签: ruby-on-rails mongodb
我现在正在使用MongoDB 我有ID数组排序。
post_ids是按数组排序的数组
@posts = Post.in(id:post_ids)
但我无法获得排序后的数据。
如何解决此问题?