Articles tagged with MongoDB

How to sort lexicographically in MongoDB ?

TL;DR

Introduction

This solution relies on case-insensitive indexes to execute the sort on the database side.

Let's start with …