Return value is mixed. It should be something which is sensible for
sorting.
It is up to the persistence implementation to handle those values.
Common string and integer values are safe.
For the legacy storage it is up to the field converters to set this
value in either sort_key_string or sort_key_int.