PHPackages                             1blankz7/php-sorting - 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. 1blankz7/php-sorting

Abandoned → [cubicl/php-sorting](/?search=cubicl%2Fphp-sorting)Library[Utility &amp; Helpers](/categories/utility)

1blankz7/php-sorting
====================

A sorting library for PHP

2.0.0(2y ago)03.7kMITPHP

Since Jul 17Pushed 2y ago1 watchersCompare

[ Source](https://github.com/CubiclDev/php-sorting)[ Packagist](https://packagist.org/packages/1blankz7/php-sorting)[ Docs](https://github.com/cubicldev/php-sorting)[ RSS](/packages/1blankz7-php-sorting/feed)WikiDiscussions master Synced 4d ago

READMEChangelog (2)Dependencies (3)Versions (5)Used By (0)

Cubicl\\Sorting Module
======================

[](#cubiclsorting-module)

Implementation of a generic sorting system with an interface definition compatible to the [Comparable RFC](https://wiki.php.net/rfc/comparable).

Usage
-----

[](#usage)

You have two possible options. Depending on your use case you can implement the `Cubicl\Sorting\Comparable` interface or use a comparator.

```
