PHPackages                             lena2332/sorter - 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. lena2332/sorter

ActiveProject

lena2332/sorter
===============

This library helps sort

00PHP

Since Mar 5Pushed 7y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Sorter Library
==============

[](#sorter-library)

You can sort a numeric array or string array in increase or decrease.

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

[](#installation)

For used this library just execute the following command

```
$ composer require lena2332/sorter

```

Usage
-----

[](#usage)

If you want sort your array increase, use following code:

```
//Regular sorter
$sorter = new \Lk\Sorter\SorterInit(new IncreaseSorter());

//You can add flag for string array or number array
$sorter = new \Lk\Sorter\SorterInit(new IncreaseSorter(), 'string');

//You can change flag 'string' for string array or 'number' for number array
$sorter->setFlag('string');

// Initialisation array
$sorter->sortInit($array);

//For change sorter use
$sorter->setSorter(new DecreaseSorter());

```

Copyright (c) 2019, Elena Kupriiets

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity37

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/24cb8094c1e60a343c57d14c11708b9be2ff40f512d582bb5e0fb6ad0909692c?d=identicon)[Lena2332](/maintainers/Lena2332)

---

Top Contributors

[![Lena2332](https://avatars.githubusercontent.com/u/4233741?v=4)](https://github.com/Lena2332 "Lena2332 (8 commits)")

### Embed Badge

![Health badge](/badges/lena2332-sorter/health.svg)

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

PHPackages © 2026

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