The SortPattern constructors do not check for duplicate paths being in the sort pattern, e.g.
{a:1, b:1, a:1}. This is something we should check for and disallow. There may be existing places in our codebase where a sort pattern with duplicate field names are created by accident.
- is documented by
-
DOCS-16083 Investigate changes in SERVER-74725: Query SortPattern does not check for duplicate fields
- Closed
- related to
-
SERVER-76694 Remove double net from sort key generation
- Closed