--- id: zope-sequencesort version: "6.0" license: ZPL-2.1 license_treatment: unclear maintenance: aging --- # zope.sequencesort — Sequence Sorting License: unclear · Maintenance: aging · Downloads: 127.9K/mo ## What it is and what it does zope.sequencesort is a utility library for sorting sequences using multiple sort keys with fine-grained control over comparison behavior. It provides locale-aware string comparisons and per-key direction control, allowing you to sort complex data structures by multiple criteria in a single operation. The package is part of the Zope ecosystem and is used primarily in web frameworks and applications that need sophisticated sorting logic. It has no external runtime dependencies beyond setuptools and installs as a pure Python wheel, making it lightweight to add to existing projects. The codebase is stable and actively maintained for current Python versions (3.9–3.13). Use it for: - Sort database query results by multiple columns with mixed ascending/descending directions. - Order multilingual content by locale-specific string comparison rules. - Build custom sorting logic for web application result sets with per-field sort preferences. - Handle edge cases like None values or broken objects in sequence comparisons. - Implement catalog-style sorting in Zope-based content management systems. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Sorts sequences by multiple keys with support for locale-based comparisons and per-key sort directions. Yes, if you need multi-key sorting with locale support in a Zope context or similar framework. The package is stable, has no known vulnerabilities, and installs with minimal friction. However, if you're building new code outside the Zope ecosystem, Python's built-in sorted() with custom key functions may be simpler. Verify ZPL-2.1 license compatibility first. ## Install pip install zope-sequencesort uv add zope-sequencesort poetry add zope-sequencesort ## Installing zope.sequencesort Before you install: Low friction to install; pure Python wheel with only setuptools as a runtime dependency. Last release was 336 days ago; maintenance status is aging but the package is marked Production/Stable and supports current Python versions (3.9–3.13). License in practice: Licensed under Zope Public License (ZPL-2.1), which is OSI-approved. License treatment is marked unclear in the fact sheet; verify compatibility with your project's licensing requirements before use. Quickstart: pip install zope.sequencesort from zope.sequencesort import sort data = [{'name': 'Alice'}, {'name': 'Bob'}] sorted_data = sort(data, (('name', None, False),)) Requires Python 3.9 or later. Verify before relying: - Exact API surface and available sort functions beyond the basic sort capability. - Whether locale-based comparisons require the locale module to be pre-imported or are always available. - Performance characteristics on large sequences or deeply nested sort keys. - Concrete usage examples showing locale comparison and per-key direction control. ## Package facts - License: ZPL-2.1 (unclear) - Python support: supports_current - Install friction: low - Maintenance: aging - Downloads: 127.9K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags multi-key sequence sorting, locale-aware sorting, custom sort directions, zope sorting utilities, sequence comparison, locale-based comparisons, zope-ecosystem, sorting-utilities [View on SkillFed](https://skillfed.io/packages/zope-sequencesort) · [View on PyPI](https://pypi.org/project/zope-sequencesort/)