I'd like to apply a filter to a range in google sheets. The range is input by a function that pulls data from a database. Is it possible to sort this range if the function is managing the data in a certain order (through a 2d array)
Gist of Code in Google App Scripts
function returnData() {
return ["DataX", "DataY", "DataZ"]
}
Function Call in Cell:
= returnData()