Support Collation for Atlas search sort
I have a use case to sort by product names (strings). We have products that start with letters and some that start with numbers. Currently, the products that begin with numbers are always at the top when you sort in ascending order. We would like to sort alphanumerically so that the products beginning with letters are displayed first and those with numbers at the very end.
It would therefore be nice if the $search operator could support collations with the sort parameter.
See: https://www.mongodb.com/community/forums/t/atlas-search-sort-with-collation-locale/269296/5
13
votes
Tom
shared this idea