dataType and sort direction parameters are not passed to sortType function.
However they can be obtained with this code inside the sortType callback function.
var dataType = grid.getColumn({dataIndx: dataIndx}).dataType || "string";
var dir = grid.option('sortModel').sorter.find(col=>col.dataIndx==dataIndx).dir
where grid is js grid instance of the grid.