Tables: Fixed sorting of numeric columns with dashes (fixes #5390)