Search

sort() ex 6

Formula Example Supporter
description
Sorting a list of numbers given an expression current * -1. - The expression is applied to each item, and then sorting occurs from smallest to largest.
example tags
formula
sort([3, 1, 2], current * -1) - First, the expression is applied to each item, resulting in values like [-3, -1, -2]. When sorted from smallest to largest, this becomes [-3, -2, -1], which maps back to [3, 2, 1].
linked blog post
results