Sort not working in Mongo


When using sort in a query, the sort is case sensitive. I am using MongoDB 3.4.


Can you post your code, so others can debug please.


myColl.find({},{sort: { title: 1 }}).fetch();


Apparently you have to make special index for this:

I am unsure whether this is supported in minimongo.

As a workaround you can try adding a lowercased copy of your field to your collection, on which you perform the sort: