Update js/grid.base.js

support of case sensitive sorting of local data, small optimization of `_compare`.