Sorting...
You can specify a string as a parameter parameterMap, and this string can be either a JavaScript function directly, or the name of a JavaScript function that is on the page.
.parameterMap("myParamMapFunction");
or
.parameterMap("function(data){ /* do stuff with the data */}");
source
share