Sort({ time: -1}) refers to sorting in descending order according to the value size of the time attribute

  node.js, question

What is this grammar?

In MongoDBsortThe default value is ascending, and parameters: 1 is ascending and -1 is descending.
If time:-1 is specified, it is arranged in descending order, and is closer to the front of the current time.