Skip to content

Improve comparison/sorting #457

Closed
Closed
@AlekSi

Description

We should make our comparison and sorting of scalar values, arrays, and documents work the same way as in MongoDB (excluding values we don't support, like NaNs and nested arrays).

Compat newly discovered issues:


  • comparison of documents without reflection;
  • comparison of [], [null] arrays;
  • comparison of arrays with a different element order;
  • comparison of arrays with a different element types;
  • comparison of documents with missing fields and nulls;
  • comparison of documents with different fields order;
  • comparison of documents with different fields types;
  • ascending and descending sorting:
    • scalars;
    • documents;
    • arrays;
  • check that changes are ported to findAndModify.

We might have some of that tested already, but we should check that, add missing tests, and fix bugs.

Metadata

Assignees

No one assigned

    Labels

    code/enhancementSome user-visible feature could work better

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions