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

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

wetalou/sort
============

php sort function

1.7(4y ago)15PHP

Since Mar 26Pushed 4y ago1 watchersCompare

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

READMEChangelog (6)DependenciesVersions (7)Used By (0)

***排序算法大全***

**0.1 算法分类**十种常见排序算法可以分为两大类：

比较类排序：通过比较来决定元素间的相对次序，由于其时间复杂度不能突破O(nlogn)，因此也称为非线性时间比较类排序。 非比较类排序：不通过比较来决定元素间的相对次序，它可以突破基于比较排序的时间下界，以线性时间运行，因此也称为线性时间非比较类排序。 [![image](https://user-images.githubusercontent.com/9046988/160244851-56bd937c-3f1c-4350-ba8d-ebc8de5cb9b8.png)](https://user-images.githubusercontent.com/9046988/160244851-56bd937c-3f1c-4350-ba8d-ebc8de5cb9b8.png)**0.2 算法复杂度**[![image](https://user-images.githubusercontent.com/9046988/160244897-38778747-410a-4bd9-ab4d-eb2acc49276a.png)](https://user-images.githubusercontent.com/9046988/160244897-38778747-410a-4bd9-ab4d-eb2acc49276a.png)

**0.3 相关概念**稳定：如果a原本在b前面，而a=b，排序之后a仍然在b的前面。 不稳定：如果a原本在b的前面，而a=b，排序之后 a 可能会出现在 b 的后面。 时间复杂度：对排序数据的总的操作次数。反映当n变化时，操作次数呈现什么规律。 空间复杂度：是指算法在计算机 内执行时所需存储空间的度量，它也是数据规模n的函数。

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Every ~0 days

Total

6

Last Release

1512d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b067ab60511d90d95e8c179d84f8db95c8b3cc52ee65b02d48519a3d97581476?d=identicon)[wetalou](/maintainers/wetalou)

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[based/momentum-modal

Build dynamic modal dialogs for your Inertia-powered Laravel apps

462427.3k1](/packages/based-momentum-modal)[backpack/settings

Application settings interface for Laravel 5 using Backpack CRUD.

290870.9k10](/packages/backpack-settings)

PHPackages © 2026

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