I found some examples where they were using this call directly after creating
var columns = new Array();
columns[0] = new nlobjSearchColumn('internalid');
columns[0].setSort() - getting error Code: SSS_INVALID_ARRAY_ARGUMENT Details: columns[0]
I need to be able to dynamically set the sort attribute on a column, so I was hoping this would work. But it looks like this is not allowed.