The Rank() function returns the positions of the numbers in a vector or list, as if the numbers were sorted from lowest to highest.
R = Rank( E );
If E were sorted from lowest to highest, the first number would be -7. The position of -7 in E is 9.
The Ranking Tie() function returns ranks for the values in a vector or list, with ranks for ties averaged. Similarly, Ranking() returns ranks for the values in a vector or list, but the ties are ranked arbitrarily.
Ranking Tie( E );
Ranking( E );
Sort Ascending( E );
Sort Descending( E );