table/xtable sorting logic changed!!!
 - performance issue resolved!!