Does the $in operator preserves the order of the array?

Hi @Adriano_Tirloni,

Welcome to MongoDB community

MongoDB only gurantee order of documents based on a sort operation. Therefore, even if some queries will return the order you need it won’t be guaranteed for every query.

Thanks
Pavel