By default, when QDB compares two text values, the result of the comparison is determined using memcmp(), regardless of the text encoding. QDB lets you supply arbitrary comparison functions, known as user-defined collation sequences, to use instead of memcmp(). See Writing User-Defined Functions for more information.
QDB features three built-in collation sequences:
The last two sequences are intended for testing purposes.