Proper table sorting of numeric values