Tried sorting by element length… No errors but it doesn’t work:
return ${myarray}.sort((x,y) => x.length - y.length);
What’s the best practice for sorting an array in ui.vision?
{
"Command": "csvReadArray",
"Target": "REdata.csv",
"Value": "myarray",
"Description": ""
},
{
"Command": "executeScript_Sandbox",
"Target": "return ${myarray}.sort((x,y) => x.length - y.length);",
"Value": "myarray",
"Description": ""
},