I try to add sorting to the kanban programmatically in Angular.
I can add a single sorting by use .addSort(“dataField1″,”ascending”), there is no problem. I know it is possible to sort by multiple dataFields and the documentation says I could use something like .addSort([“dataField1”, “dataField2”], [“ascending”,”ascending”]) but if I use this code I get an error:
“Argument of type ‘[string, string]’ is not assignable to parameter of type ‘string | []’.
Type ‘[string, string]’ is not assignable to type ‘string’.”
What I’m doing wrong, can somebody help please? Thanks in advance