skillfed

zope.sequencesort

Sequence Sorting

zope-sequencesort v6.0 127.9K downloads/30d#11,727 on PyPI1
License unclear ZPL-2.1 AGING released

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 on this page — 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

zope-sequencesort on PyPI

pip

pip install zope-sequencesort

uv

uv add zope-sequencesort

poetry

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 the current Python release (>=3.9)
Install friction low — pure-Python wheel
Runtime dependencies 1 — setuptools
Maintenance aging — 336 days since the last release
Last repo commit
First released
Downloads 127,863/month — #11,727 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: zope_sequencesort-6.0-py3-none-any.whl

Keywords: zope3, sequence, sort

Development Status :: 5 - Production/StableEnvironment :: Web EnvironmentFramework :: Zope :: 3Intended Audience :: DevelopersLicense :: OSI Approved :: Zope Public LicenseNatural Language :: EnglishOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.9Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPyTopic :: Internet :: WWW/HTTP

Tags

multi-key sequence sortinglocale-aware sortingcustom sort directionszope sorting utilitiessequence comparisonlocale-based comparisons
zope-ecosystemsorting-utilities

More WWW/HTTP packages