fixed grid_debug.js sort bug