Instead of inserting text into the aux table and sorting on the fly (which does a binary sort), we insert the ids in unicase-sorted order, and then sort based on the automatically assigned rowids - giving us faster sorts, and proper unicase folding.