PHPackages                             ridesoft/quicksort - 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. ridesoft/quicksort

ActiveLibrary

ridesoft/quicksort
==================

PHP implementation of quicksort

1.0.0(10y ago)014MITPHPPHP &gt;=5.4

Since Feb 28Pushed 10y ago1 watchersCompare

[ Source](https://github.com/ridesoft/quicksort)[ Packagist](https://packagist.org/packages/ridesoft/quicksort)[ RSS](/packages/ridesoft-quicksort/feed)WikiDiscussions master Synced 2mo ago

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

Quicksort
---------

[](#quicksort)

[![](https://camo.githubusercontent.com/5dc23d68b57e357b997622ee93f1764e7c837effd1bed1117df5ef7ddfdc19c3/68747470733a2f2f7472617669732d63692e6f72672f4d617572697a696f4272696f736368692f717569636b736f72742e7376673f6272616e63683d6d6173746572)](https://camo.githubusercontent.com/5dc23d68b57e357b997622ee93f1764e7c837effd1bed1117df5ef7ddfdc19c3/68747470733a2f2f7472617669732d63692e6f72672f4d617572697a696f4272696f736368692f717569636b736f72742e7376673f6272616e63683d6d6173746572)[![Coverage Status](https://camo.githubusercontent.com/de9d613765d3ad0a3fc5f71c4ecffc46fc4f038550f3db86f0a18227aa96161a/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f4d617572697a696f4272696f736368692f717569636b736f72742f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/MaurizioBrioschi/quicksort?branch=dev)[![Latest Stable Version](https://camo.githubusercontent.com/327e19b859e43357f48629000c6bd33274fc9d552631af8f570baf29355e0f8a/68747470733a2f2f706f7365722e707567782e6f72672f72696465736f66742f717569636b736f72742f762f737461626c65)](https://packagist.org/packages/ridesoft/quicksort) [![Total Downloads](https://camo.githubusercontent.com/b2bb15983818b90c02dfea6f67a9fd0f4246aad9843a1a86e248048f05337c84/68747470733a2f2f706f7365722e707567782e6f72672f72696465736f66742f717569636b736f72742f646f776e6c6f616473)](https://packagist.org/packages/ridesoft/quicksort) [![Latest Unstable Version](https://camo.githubusercontent.com/8c4485f5a322f18b9d718b1732aa1ddb7b56bd77f18d0b13f0a02db5c5913b0f/68747470733a2f2f706f7365722e707567782e6f72672f72696465736f66742f717569636b736f72742f762f756e737461626c65)](https://packagist.org/packages/ridesoft/quicksort) [![License](https://camo.githubusercontent.com/fe171d11c9a2c9a245b5390fd3f637fb8d6e34cd2ca086fc91ad884a04ec0eb8/68747470733a2f2f706f7365722e707567782e6f72672f72696465736f66742f717569636b736f72742f6c6963656e7365)](https://packagist.org/packages/ridesoft/quicksort)

PHP implementation of **Quicksort** algorithm: Quicksort is an efficient sorting algorithm base on the paradigm divide et impera

- Is the best algorithm base on comparison
- Best case: Θ (n log n)
- Bad case: Θ (n^2)

**Quicksort is the same algorithm that PHP uses for all the [sorting functions](http://php.net/sort), so is better to use PHP core library. This library has a only academic purpose**

Install
=======

[](#install)

Install using composer:

```
"require": {
        "ridesoft/quicksort: "~1.0.0"
    }

```

Use
===

[](#use)

```
