Mongodb $in sorting problem

  mongodb, question

Mongodb $in sequencing problem?
How to sort in sequence according to the specified array?
For example, $in:[‘a’,’b’,’c’] is also found according to the sequence of ab c.
Ask the great god for advice

Do you mean to search with $in first, then sort? ?
Then you should use aggregate