and Sorting Strings
The fstremp and fstrempi functions allow applications to compare
and sort strings based on the language specified by the user. These
functions take into account different alphabetic orderings, diacritical
marks, and special cases that require character compression or expansion.
The comparison done by fstremp and fstrempi is based on a primary
value and a secondary value. Each character has a primary and secondary
value. When performing the comparison of two strings, the primary
value takes precedence over the secondary value. That is, the secondary
value is ignored unless a comparison based on primary value shows
the strings as equivalent.