modifications to accommodate sorting on JSON objects, arrays, OR strings in a grid generated by backgrid.js