You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi all,
Is there a chance to have got the $sort operator for query option or as a cursor method?
For my understanding, your project doesn't support server side sorting. Does it?
Thank you.
R.
The text was updated successfully, but these errors were encountered:
Sorting is done via query options as per MongoDB's command syntax. Options are passed to mongo-c-driver as-is, so your best bet is to always refer to MongoDB's documentation first. See this for example:
-- Iterate documents in a for-looplocalage_desc=mongo.BSON{sort= {age=-1}}
forpersonincollection:find({}, age_desc):iterator() doprint(person.name, person.age)
end
Hi all,
Is there a chance to have got the $sort operator for query option or as a cursor method?
For my understanding, your project doesn't support server side sorting. Does it?
Thank you.
R.
The text was updated successfully, but these errors were encountered: