mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-11 17:58:41 +00:00
39 lines
717 B
PHP
Executable File
39 lines
717 B
PHP
Executable File
<?php
|
|
/**
|
|
* Karaka
|
|
*
|
|
* PHP Version 8.1
|
|
*
|
|
* @package phpOMS\Algorithm\Sort;
|
|
* @copyright Dennis Eichhorn
|
|
* @license OMS License 1.0
|
|
* @version 1.0.0
|
|
* @link https://jingga.app
|
|
*/
|
|
declare(strict_types=1);
|
|
|
|
namespace phpOMS\Algorithm\Sort;
|
|
|
|
/**
|
|
* SortInterface class.
|
|
*
|
|
* @package phpOMS\Algorithm\Sort;
|
|
* @license OMS License 1.0
|
|
* @link https://jingga.app
|
|
* @since 1.0.0
|
|
*/
|
|
interface SortInterface
|
|
{
|
|
/**
|
|
* Sort array
|
|
*
|
|
* @param array $list List of sortable elements
|
|
* @param int $order Sort order
|
|
*
|
|
* @return array Sorted array
|
|
*
|
|
* @since 1.0.0
|
|
*/
|
|
public static function sort(array $list, int $order = SortOrder::ASC) : array;
|
|
}
|