add debug info in sortby