Configuring database sort in language_languageCode.xml
For optional use, the <SortCollation> subelement of the
<GWLanguage> element in
language_languageCode.xml
controls specialized sorting behavior. To access the
localization files, open Guidewire Studio™ and navigate in the
Projects window to .
The <SortCollation>
element has a single strength
attribute that determines collation strength—how
PolicyCenter sorting algorithms
handle accents and case during the sorting of character data for the
following:
- Sorting of in-memory data
- Sorting of data in the database
The strength
attribute, which defaults to secondary,
can take the following values:
primarysecondarytertiary
The specific meaning of the strength attribute depends on
the language. In general:
- A
strengthofprimaryinstructs the search and sort algorithms to consider just the base, or primary letter, and to ignore other attributes, such as case or accents. With this setting, the collation rules consider the characterseandEto have the same weight. - A
strengthofsecondaryinstructs the search and sort algorithms to consider character weight and accent differences. This value is the default setting. With this setting, the collation rules consider the characterseandèto be different and order them differently. - A
strengthoftertiaryinstructs the search and sort algorithms to consider character weight, accent differences, and case. With this setting, the collation rules consider the characterseandèandEto be different and order them differently.
The following list describes these differences.
Strength |
Case-sensitive |
Accent-sensitive |
|---|---|---|
|
No |
No |
|
No |
Yes |
|
Yes |
Yes |
