sort

Input Stack:
String
TimeSeriesExpr
Output Stack:
StyleExpr
 

Sort the results of an expression in the legend by one of the summary statistics or by the legend text. The default behavior is to sort by the legend text. This will sort in ascending order by default, for descending order use order.

Since: 1.5

Example:

BeforeAfter
name,sps,:eq,
:sum,
(,nf.cluster,),:by
name,sps,:eq,
:sum,
(,nf.cluster,),:by,
max,:sort