M1 | MxN matrix by which an array is sorted. |
M2 | MxN matrix the function will return. |
D | Direction in which the matrix is sorted: ■a = ascending ■d = descending |
Function | SORT_BY( {15, 19, 12} , {[4, 6, 9]} , "d" ) |
Result | 6.0, 4.0, 9.0 |
Function | SORT_BY( {84, 91, 84} , {[4, 6, 9]} , "d" ) |
Result | 6.0, 9.0, 4.0 |