I have defined the following function in the scripteditor
function SORTBYLEN(input) {
return Array.isArray(input) ?
input.sort((a,b) => a.length - b.length): input
}
I would expect to be able to give it a range of strings and it would return the range sorted by string length, yet when I try to use it, nothing changes.

