Comparison & Text
Sort lines and remove duplicates with predictable options.
Choose comparison, direction, whitespace, empty-line, and duplicate rules, then sort into a separate output. Equal comparison keys retain their original order.
Sort and deduplicate lines locally using lexical, natural numeric, numeric-only, or locale-aware comparison with stable ordering and explicit empty-line policies.