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

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

mlquick-sort/mlquick-sort
=========================

php 快速排序

011PHP

Since Jan 17Pushed 4y ago1 watchersCompare

[ Source](https://github.com/wmlzy/QuickSort)[ Packagist](https://packagist.org/packages/mlquick-sort/mlquick-sort)[ RSS](/packages/mlquick-sort-mlquick-sort/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

```
composer require mlquick-sort/mlquick-sort:dev-main

```

```
//参数
$arr = [
    ['id' => 1,'order' => 1],
    ['id' => 2,'order' => 2],
    ['id' => 3,'order' => 3],
    ['id' => 4,'order' => 4],
    ['id' => 5,'order' => 5],
];
把order == 1 变成 order == 3
return (new QuickSort)->minToMax(['id' => 1,'order' => 1],['id' => 1,'order' => 3],$arr);
结果 :
['id' => 1,'order' => 3]
['id' => 2,'order' => 1]
['id' => 3,'order' => 2]
['id' => 4,'order' => 4]
['id' => 5,'order' => 5]

return (new QuickSort)->maxToMin(['id' => 4,'order' => 4],['id' => 4,'order' => 2],$arr);
结果 :
array(5) {
[0]=>
array(2) {
["id"]=>
int(1)
["order"]=>
int(1)
}
[1]=>
array(2) {
["id"]=>
int(2)
["order"]=>
int(3)
}
[2]=>
array(2) {
["id"]=>
int(3)
["order"]=>
int(4)
}
[3]=>
array(2) {
["id"]=>
int(4)
["order"]=>
int(2)
}
[4]=>
array(2) {
["id"]=>
int(5)
["order"]=>
int(5)
}
}

```

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity27

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/571e06e9de944683e8c65a1830a19a1849b88cfacced748a15c149f403bc3339?d=identicon)[wml-hub](/maintainers/wml-hub)

---

Top Contributors

[![wmlzy](https://avatars.githubusercontent.com/u/38650301?v=4)](https://github.com/wmlzy "wmlzy (13 commits)")

### Embed Badge

![Health badge](/badges/mlquick-sort-mlquick-sort/health.svg)

```
[![Health](https://phpackages.com/badges/mlquick-sort-mlquick-sort/health.svg)](https://phpackages.com/packages/mlquick-sort-mlquick-sort)
```

###  Alternatives

[lifo/typeahead-bundle

A Symfony bundle that provides an autocomplete Typeahead form type compatible with Bootstrap v2|v3

22118.8k](/packages/lifo-typeahead-bundle)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
