Provides support for sorting sequences by one or more criteria, including ascending/descending order and case-insensitive comparisons. Current version: 6.0 (requires Python >=3.9). Maintained as part of the Zope Foundation, releases are stable but infrequent.
pip install zope-sequencesortVerified import paths — ran on the pinned version, not inferred.
Sort a list of dicts by a key, with options for descending and case-insensitive.
Ensure you pass a tuple of tuples, e.g., (('name', False, False),). Do not pass a single tuple without the outer parentheses.Pre-process your data to flatten nested structures before sorting, or use a lambda with Python's sorted().
If you encounter install errors, upgrade pip and setuptools, or use a virtual environment.
Install with 'pip install zope-sequencesort' and import as 'from zope.sequencesort import sort'.
Wrap the key tuple in an extra set of parentheses: sort(items, (('name', False, False),))Convert dicts to objects (e.g., using types.SimpleNamespace) or sort using Python's sorted() with a lambda.
No dependency data recorded yet.