I havent written any code to test the speed, as I dont know where you are getting your source strings, or how long they would be.
But:
While Xojo doesnt have a string sort, there have been many attempts at ‘fastest sort’ algorithms.
So it seems to me that if you put the strings into a memoryblock, then accessing each digit is just a case of using MemblockA.byte(n) and MemblockB.byte(n)
Each memoryblock can then be treated in almost the same way as an integer array.. it just comes down to how fast you can sort those.
Sadly, while Xojo has a sort method on an actual integer array, there is no similar thing for a memoryblock.
So you would either apply your own sort to the memoryblock,
or waste processing time putting the bytes into a Xojo array