Skip to content

Natural sort error #283

@mrblackus

Description

@mrblackus

Hi,

My issue looks a lot like #265.
When doing a sort $natural => -1 on a find, a Cannot use $-modifiers or empty keys in 'opts' RuntimeException is raised.

My environment is:
PHP: 7.0.12
Library: 1.0.3
Mongodb: 3.2
Extension: mongodb-1.2.0alpha3

$collection->find([], [ 'sort' => [ '$natural' => -1 ]]);

Maybe I'm doing something wrong, or is it a bug?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions