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

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

rikudou/array-sort
==================

Class for sorting arrays

v1.0.1(8y ago)11.4k1WTFPLPHPPHP &gt;=7

Since Nov 1Pushed 7y ago1 watchersCompare

[ Source](https://github.com/RikudouSage/php-array-sort)[ Packagist](https://packagist.org/packages/rikudou/array-sort)[ Docs](https://github.com/RikudouSage/php-array-sort)[ RSS](/packages/rikudou-array-sort/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependencies (1)Versions (3)Used By (1)

PHP ArraySort
=============

[](#php-arraysort)

Simple class for sorting arrays, it's just a wrapper around built-in php functions.

All sorting methods are performed on a copy of array, they don't modify the original array and return arrays. Or throw `\rikudou\ArraySortException`.

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

[](#installation)

Use composer: `composer require rikudou/array-sort`

Usage
-----

[](#usage)

For a better control the sorting methods are chained by the type.

**Example:**

```
