【问题标题】:How do I sort descending in dataweave?如何在dataweave中降序排序?
【发布时间】:2020-03-11 03:27:11
【问题描述】:

这适用于上升。

vars.results orderBy (results) -> results.name

但不知道如何按名称降序排序

【问题讨论】:

    标签: dataweave


    【解决方案1】:

    试试这个:

    (vars.results orderBy (results) -> results.name)[-1 to 0]
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2015-07-31
      • 1970-01-01
      • 1970-01-01
      • 2023-02-26
      • 2013-01-10
      • 1970-01-01
      • 2019-02-21
      相关资源
      最近更新 更多