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

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

cubicl/php-sorting
==================

A sorting library for PHP

2.0.0(2y ago)04.4kMITPHP

Since Jul 17Pushed 2y ago1 watchersCompare

[ Source](https://github.com/CubiclDev/php-sorting)[ Packagist](https://packagist.org/packages/cubicl/php-sorting)[ Docs](https://github.com/cubicldev/php-sorting)[ RSS](/packages/cubicl-php-sorting/feed)WikiDiscussions master Synced 3d 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.

```
