Hi Ulbe

Sigh... Thanks for the info. Never would have figured this out myself!
As a workaround I just made the function return the left 10 chars to sort on. This seems to work. I assume this is legal?