$rank

按指定指标排序后返回排名。

最小写法

{
  "name": "销售额排名",
  "operator": "$rank",
  "pred": { "operator": "$sum", "pred": "amount" },
  "direction": -1
}