PHPackages                             unzeroun/sorter - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. unzeroun/sorter

Abandoned → [tilleuls/sorter](/?search=tilleuls%2Fsorter)ArchivedLibrary[Utility &amp; Helpers](/categories/utility)

unzeroun/sorter
===============

A library to dynamically sort collections / queries

1.0.0(1y ago)0937MITPHPPHP &gt;=8.1CI passing

Since Mar 29Pushed 1y ago2 watchersCompare

[ Source](https://github.com/un-zero-un/sorter)[ Packagist](https://packagist.org/packages/unzeroun/sorter)[ RSS](/packages/unzeroun-sorter/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (14)Versions (13)Used By (0)

Sorter
======

[](#sorter)

Warning

This repo is archived and the project now lives here :

Sorter is a PHP column sorting library that allows you to apply sorts of any kind of data source.

[![tests](https://github.com/un-zero-un/sorter/actions/workflows/ci.yml/badge.svg)](https://github.com/un-zero-un/sorter/actions/workflows/ci.yml)[![Mutation testing badge](https://camo.githubusercontent.com/61265665820b74f558df519877ba777a722c6f16b0bce17d571f67d628d79d8b/68747470733a2f2f696d672e736869656c64732e696f2f656e64706f696e743f7374796c653d666c61742675726c3d687474707325334125324625324662616467652d6170692e737472796b65722d6d757461746f722e696f2532466769746875622e636f6d253246756e2d7a65726f2d756e253246736f727465722532466d61696e)](https://dashboard.stryker-mutator.io/reports/github.com/un-zero-un/sorter/main)[![Coverage Status](https://camo.githubusercontent.com/420121ccfd414a56e2b939d8a4428857c85c983e9690b2eb33c3d199a32e751c/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f756e2d7a65726f2d756e2f736f727465722f62616467652e7376673f6272616e63683d6d61696e)](https://coveralls.io/github/un-zero-un/sorter?branch=main)

Features
--------

[](#features)

- Sorts any kind of data source
- Sorts by multiple columns
- Factorise sorting logic into definitions classes
- Process HTTP request
- Symfony Bundle
- Twig extension

Installation
------------

[](#installation)

```
 $ composer require unzeroun/sorter
```

### Optionnal : enable symfony bundle

[](#optionnal--enable-symfony-bundle)

```
