Library to sort arrays and array objects.

1.1.0 2017-12-08 12:51 UTC

This package is not auto-updated.

Last update: 2024-04-25 04:38:49 UTC


README

Latest Stable Version Build Status Total Downloads License Test Coverage

Sorty provided a library to sort arrays and object storages by multiple properties and directions. Object storages must be implement "\Iterator" and "\ArrayAccess" interfaces.

Installation

composer require jan-maennig/sorty

How to use

Sort array collection

examples/example_array.php

Sort a storage of objects

examples/example_object_storage.php

Checks

./vendor/bin/phpcs --standard=PSR2 ./src -v
./vendor/bin/phpcpd ./src
./vendor/bin/phpunit ./tests/ --coverage-clover build/logs/clover.xml
./vendor/bin/phpmd ./src text ./phpmd.xml
./vendor/bin/security-checker security:check ./composer.lock

Changelog

2017-12-04 Jan Maennig janmaennig@gmail.com

* Add functionality to sort object storages

2016-11-09 Jan Maennig janmaennig@gmail.com

* Bugfixes
* Add code checks 

2016-11-01 Jan Maennig janmaennig@gmail.com

* Initial add array value sorter