The SORT and SORTBY functions let you extract certain columns and rows from a dataset and sort them in a certain order, all while preserving the source data. Even though they work in similar ways, ...
Turns out half my old formulas were just dynamic arrays in disguise, written the long way.