sortkey() truncates result sets from wide columns

[Bug # 239293] sortkey() displays a maximum of 255 bytes of data and truncates result sets that are longer than this, which may lead to inaccurate comparison for wider columns.