如何在 dataweave 中按降序排序?

Bre*_*der 3 dataweave

这适用于上升。

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

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

小智 5

尝试这个:

(vars.results orderBy (results) -> results.name)[-1 to 0]
Run Code Online (Sandbox Code Playgroud)