Skip to content

Sorty provided a library to sort arrays by multiple properties and directions.

License

Notifications You must be signed in to change notification settings

janmaennig/sorty

Folders and files

NameName
Last commit message
Last commit date
Dec 6, 2017
Dec 6, 2017
Dec 6, 2017
Dec 6, 2017
Dec 6, 2017
Nov 1, 2016
Dec 4, 2017
Dec 6, 2017
Dec 6, 2017
Nov 9, 2016
Nov 9, 2016

Repository files navigation

Sorty

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 [email protected]

* Add functionality to sort object storages

2016-11-09 Jan Maennig [email protected]

* Bugfixes
* Add code checks 

2016-11-01 Jan Maennig [email protected]

* Initial add array value sorter

About

Sorty provided a library to sort arrays by multiple properties and directions.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages