What happened?
Description
When sorting entries by a text field the sort ascending/descending works pretty well. However, when set to a number field it falls apart.
Steps to reproduce
- Create a custom number field
- Create a channel and add the new number field to an entry type.
- Add some numerical values to your entries
- Sort the entry view by the number field
Expected behavior
Entries would be sorted in numerical order
Actual behavior
Entries are sorted based on the value of the first number only

Craft CMS version
5.4.4
PHP version
No response
Operating system and version
No response
Database type and version
No response
Image driver and version
No response
Installed plugins and versions
What happened?
Description
When sorting entries by a text field the sort ascending/descending works pretty well. However, when set to a number field it falls apart.
Steps to reproduce
Expected behavior
Entries would be sorted in numerical order
Actual behavior
Entries are sorted based on the value of the first number only

Craft CMS version
5.4.4
PHP version
No response
Operating system and version
No response
Database type and version
No response
Image driver and version
No response
Installed plugins and versions