Sorting Multi-Level Indexes in LibreOffice Writer
Creating an organized multi-level index in LibreOffice Writer requires an understanding of how the application processes alphabetical sorting across different entry tiers. This article outlines the specific sorting rules, hierarchical behaviors, and locale-based configurations available in LibreOffice Writer to control the alphabetical order of primary keys, subkeys, and complex index structures.
Hierarchical Key Precedence
Multi-level indexes in LibreOffice Writer function through a structured hierarchy consisting of a main entry (1st key), a secondary entry (2nd key), and a tertiary entry (3rd key). Sorting rules are applied strictly from the top level downward:
- Primary Sort (1st Key): All main entries are sorted alphabetically against one another according to the selected language collation rules.
- Secondary Sort (2nd Key): Subentries are grouped exclusively beneath their respective primary entry and sorted alphabetically within that specific group.
- Tertiary Sort (3rd Key): Sub-subentries are sorted alphabetically only within their respective secondary parent group.
A subentry will never sort independently of its parent key, ensuring that the contextual relationship between topics remains intact.
Locale and Language-Based Collation
Alphabetical sorting in LibreOffice Writer is directly tied to the document’s language settings or the specific language chosen for the index:
- Language Rules: Alphabetical order follows the specific collation standard of the chosen language (e.g., German phonebook vs. standard dictionary sorting, or Spanish traditional vs. modern sorting).
- Diacritics and Accents: Depending on the locale, accented characters (such as é, ñ, or ö) are either treated as distinct letters following standard alphabetization or collated alongside their base letters.
Case Sensitivity Rules
LibreOffice Writer provides options to govern how letter casing influences alphabetical order:
- Case-Insensitive Sorting (Default): Uppercase and lowercase letters are treated equally during the primary sorting pass.
- Case-Sensitive Sorting: When enabled, capitalized entries are separated from lowercase entries. Typically, uppercase letters precede lowercase letters depending on the underlying locale collation rules.
Custom Sort Keys (Manual Overrides)
Writer allows users to override automatic alphabetical sorting by defining a “Sort by” value during index entry insertion. This feature is particularly useful for:
- Ignoring Prefixes: Bypassing articles like “The,” “A,” or “An” (e.g., sorting “The Great Gatsby” under “G” instead of “T”).
- Abbreviations and Acronyms: Sorting abbreviations by their fully spelled-out names.
- Non-Alphanumeric Characters: Ensuring symbols or numbers appear in a customized alphabetical location rather than at the default start or end of the index.
Asian and Phonetic Sorting
For documents using East Asian languages (such as Japanese or Chinese), LibreOffice Writer supports phonetic sorting rules:
- Phonetic/Reading Keys: Entries can be sorted based on their pronunciation (e.g., Furigana or Pinyin) rather than character stroke count or radical order, allowing for standardized alphabetical sorting in complex scripts.
Applying and Configuring Sorting Options
To configure or modify sorting rules for an index in LibreOffice Writer:
- Right-click the generated index table and select Edit Index.
- In the Type tab, select Alphabetical Index as the index type.
- Under the Sort Options section, choose the appropriate Language and Key type (alphanumeric or numeric).
- Check or uncheck Case sensitive according to the indexing requirements of the document.
- Click OK to apply the rules across all index levels.