The MongoDB PHP aggregation query does not work

I am trying to perform the aggregation using MongoDB and PHP. I'm trying to group items in a collection, where if the year is greater than or equal to 1900, they are grouped and counted by year and then sorted in ascending order.

I have written this query, however, it does not return anything.

$ result = $ collection-> added (
    [
          [
              '$match'  => ['year' => ['$gte' => '1900']]]],

    ['$group' => ['_id' => '$year', 'count' => ['$sum' => 1]]],
    ['$sort' => ['_id.year' => 1]]);