I have sharepoint custom list with 3 columns:-
1) ScoreGreenPoint --> of type number
2) ScoreRedPoint --> of type number
3) ScoreFinalScore --> of type calcualted

and inside the PowerApp i am sorting based on the above calculated column, as follow:-

but the sorting is not working for negative numbers!! because -1 (1 green point - 2 red points) is larger than -5 (5 green point with 10 red point)!! any advice?