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

ActiveLibrary

maxstepit/sorter
================

It`s PHP library in order to sorting array.

00PHP

Since Mar 5Pushed 7y ago1 watchersCompare

[ Source](https://github.com/MaxStepit/Sorter)[ Packagist](https://packagist.org/packages/maxstepit/sorter)[ RSS](/packages/maxstepit-sorter/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

PHPLibrary
===========

[](#phplibrary-)

This is a PHP lybrary that should use in order to sorting array. With this library you can to sort array by increas or decreas.

Installation

For creating new project based on this template just execute the following command

$ composer require maxstepit/sorter project-name

Usage

```
e.g.  You have Array $data:
          $data=['1','4','7','2','5','3','6'];
   If you want to sort array.

   Firstly, you may to choose logic of sorting,
   there are 3 logics that return you array in needed order:

       $logic=new Gnatkovsky\Sorting();
       $logic=new Gnatkovsky\SortingRevers();
       $logic=new Gnatkovsky\SortingNull();

   Secondly, you sould to create new class Gnatkovsky\Sorter().

       $sorter=new Gnatkovsky\Sorter($logic);

   Thirdly, you should call method doSorting($data).

       $sorting->doSorting($data);
   If you want to replace logic of sorting you may create new logic,
   then call method setLogic($newLogic).

       $newLogic=new Gnatkovsky\SortingRevers();
       $sorting->setLogic($newLogic);

This project is released under the terms of the proprearity license.

Maxim Gnatkovsky

```

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

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/5e89e9bea4c274c4a111657c60039a5c06522721406872bfd62dd064c9767308?d=identicon)[MaxStepit](/maintainers/MaxStepit)

### Embed Badge

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

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

PHPackages © 2026

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