Extracting Criteria from showFilterEditor in ListGrid

we need to put a filter on top of our listgrid. then we have a customised sorting method which needs to be called. This method takes as input whatever is entered in filtereditor. But we are not able to extract the value from the “Criteria” object which we got as below:

isc.ListGrid.create({
ID:"sysAccountList",
.........
showFilterEditor: true,
filterOnKeypress:true,
filterData:function(criteria){
searchMasterData(sysAccountList,criteria); //customised function which needs the entered text as input
},
.......

Kindly let us know how to extract the value from the criteria object.
function([criteria, callback, requestProperties])

Achieving the above requirement in a better way is also appreciated.