Open
Description
Which Umbraco version are you using?
15.3.0
Bug summary
Custom numeric properties seem to be treated as string values during ordering by them.
Specifics
Here is the uSync for reproduce the environment:
Steps to reproduce
2025-04-13.16-18-35.mp4
Expected result / actual result
We have the following values: 1, 2, 3, 4, -2, -3
Actual: asc order: 1, 2, 3, 4, -2, -3; desc order: -3, -2, 4, 3, 2, 1
Expected: asc order: -3, -2, 1, 2, 3, 4; desc order: 4, 3, 2, 1, -2, -3
P.S.: it seems this behavior caused by the following code: