bovsunovsky/sort-library

This is a sort-library study PHP projects.

v2.0.0 2020-08-24 12:59 UTC

This package is auto-updated.

Last update: 2024-04-24 21:52:55 UTC


README

Installation Either run

composer require bovsunovsky/sort-library

or add

"bovsunovsky/sort-library": "~1.0"

to the require section of your composer.json.

Usage

  • Add: use BOA\Sorter;
  • Set sort direction;
  • Call method sot($data);

Example

$sorter = new Sorter(new SortDesc());

var_dump($sorter->sort($testString)) ;

Tests

Run with console : " ./tests/test" or "php tests/test"

License

This project is released under the terms of the BSD-3-Clause license.

Copyright (c) 2020, bovsunovsky