table sorting for double values