jan-maennig / sorty
Library to sort arrays and array objects.
Installs: 2 413
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 4
Forks: 0
Open Issues: 0
Requires
- php: >=5.6
Requires (Dev)
- codeclimate/php-test-reporter: 0.4.4
- phploc/phploc: 4.0.1
- phpmd/phpmd: 2.6.0
- phpmetrics/phpmetrics: 2.3.2
- phpunit/phpunit: 5.7.25
- sebastian/phpcpd: 3.0.1
- sensiolabs/security-checker: 4.1.6
- squizlabs/php_codesniffer: 3.1.1
- theseer/phpdox: 0.10.1
- typo3/cms: 7.6.23
This package is not auto-updated.
Last update: 2025-03-27 08:51:26 UTC
README
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
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