fixing jquery table sorting issue