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