PHPackages                             graze/sort - 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. graze/sort

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

graze/sort
==========

A collection of array sorting transforms and functions

2.0.1(11y ago)12289.6k↓25.1%12MITPHPPHP &gt;=5.3

Since Mar 25Pushed 8y ago19 watchersCompare

[ Source](https://github.com/graze/sort)[ Packagist](https://packagist.org/packages/graze/sort)[ Docs](https://github.com/graze/sort)[ RSS](/packages/graze-sort/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (5)Used By (2)

Sort
====

[](#sort)

[![sort](https://camo.githubusercontent.com/ed32955e079a2605241a18e16e8e406cf3d64cbbce73ae771a9fdbca75b58eb0/687474703a2f2f6d65646961322e67697068792e636f6d2f6d656469612f664161416f3653796a564a66322f3230302e676966)](https://camo.githubusercontent.com/ed32955e079a2605241a18e16e8e406cf3d64cbbce73ae771a9fdbca75b58eb0/687474703a2f2f6d65646961322e67697068792e636f6d2f6d656469612f664161416f3653796a564a66322f3230302e676966)

**Master build:** [![Master branch build status](https://camo.githubusercontent.com/576a8105c06ce179433e44f79b630a1a6898283c50183c9d2895f4b4400e8fb3/68747470733a2f2f7472617669732d63692e6f72672f6772617a652f736f72742e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/graze/sort)

This library provides a few useful functions used for sorting large arrays or sorting where comparing array values is expensive to perform. The intention is to provide these functions while remaining interoperable with PHP's built-in `usort` functions where possible.

It can be installed in whichever way you prefer, but we recommend [Composer](https://packagist.org/packages/graze/sort).

```
{
    "require": {
        "graze/sort": "*"
    }
}
```

Documentation
-------------

[](#documentation)

```
