Tables: Added sorting for currency and formatted numbers (fixes #5115)