Package io.goobi.viewer.controller.sorting


package io.goobi.viewer.controller.sorting
Comparator and translator implementations for flexible, locale-aware sorting of viewer data, supporting alphabetic, alphanumeric, numeric, and no-op ordering strategies.
  • Class
    Description
    Comparator that orders elements alphabetically by their locale-sensitive translated string representation, using a Collator with primary strength and supporting ascending or descending order.
    Comparator that orders elements alphabetically by the plain text extracted from their HTML string representation using Jsoup, with support for ascending or descending order.
    This is an updated version with enhancements made by Daniel Migowski, Andre Bogus, and David Koelle To convert to use Templates (Java 1.5+): - Change "implements Comparator" to "implements Comparator" - Change "compare(Object o1, Object o2)" to "compare(String s1, String s2)" - Remove the type checking and casting in compare().
    Comparator implementing the Alphanum algorithm, which sorts strings containing numbers in natural numeric order rather than ASCII order, with locale-aware collation and optional translation support.
    Interface for translating an object of type T into a locale-specific string representation, used by sorting comparators to obtain a display label before comparing elements.
    No-operation comparator that always returns 0, effectively treating all elements as equal and preserving the original iteration order.
    No-operation ITranslator implementation that returns the raw string produced by the provided stringifier function without any resource-bundle lookup or locale transformation.
    Comparator that orders elements by the integer value of their string representation, falling back to lexicographic comparison when parsing fails, with support for ascending or descending order.
    Factory class that creates Comparator instances based on a sort order descriptor string.
    ITranslator implementation that looks up the string representation of a value in the viewer's resource bundle, using a configurable list of available locales and a default locale fallback.