>>-RANK(x)-----------------------------------------------------><
If x is character, RANK(x) is defined as index(collate(),x)-1, and RANK is the inverse of CHARVAL.
If x is widechar, RANK(x) is equal to UNSPEC(y) where y is x stored in bigendian format.