PHPackages                             dr2/sorting-string - 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. dr2/sorting-string

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

dr2/sorting-string
==================

Test task - Alphabetical sorting letter

04PHP

Since Nov 21Pushed 7y ago1 watchersCompare

[ Source](https://github.com/dr2/sorting-string)[ Packagist](https://packagist.org/packages/dr2/sorting-string)[ RSS](/packages/dr2-sorting-string/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

test-task/sorting-string
========================

[](#test-tasksorting-string)

[![License](https://camo.githubusercontent.com/30597ff9a350144f03bffdd9183e16468e0b3ca1193e1d08591d992622738d55/687474703a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](https://tldrlegal.com/license/mit-license)

Класс, который принимает utf8-текст и возвращает текст, в котором буквы слов отсортированы в алфавитном порядке.

Примеры:

'lemon orange banana apple' ---&gt; 'elmno aegnor aaabnn aelpp'

'лимон апельсин банан яблоко' ---&gt; 'илмно аеилнпсь аабнн бклооя'

'αβγαβγ αβγαβγαβγ' ---&gt; 'ααββγγ αααβββγγγ'

Установка
---------

[](#установка)

Установка пакета с помощью Composer.

```
composer require dr2/sorting-string

```

Использование
-------------

[](#использование)

```
$sort_obj = new SortingString\AlphabeticalSorting();

$sort_obj->sortString('лимон апельсин банан яблоко') // илмно аеилнпсь аабнн бклооя
```

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity39

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/bd987f402146773f4b74b7f68904708b64a976386ea69dc608f1f30670460d4c?d=identicon)[dr2](/maintainers/dr2)

---

Top Contributors

[![dr2](https://avatars.githubusercontent.com/u/3476656?v=4)](https://github.com/dr2 "dr2 (3 commits)")

### Embed Badge

![Health badge](/badges/dr2-sorting-string/health.svg)

```
[![Health](https://phpackages.com/badges/dr2-sorting-string/health.svg)](https://phpackages.com/packages/dr2-sorting-string)
```

###  Alternatives

[novactive/ezseobundle

Novactive eZ SEO Bundle is an Ibexa Platform bundle for SEO simplications. metas, sitemaps, robots.txt, etc.

26252.0k2](/packages/novactive-ezseobundle)[b13/unlocalizedcrop

Disables cropping for translated records. Cropping of localized records are automatically taken from the original language

1449.2k](/packages/b13-unlocalizedcrop)

PHPackages © 2026

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