mini\Table\Wrappers\SortedTable::from() Method

public static

Signature

public static function from(mini\Table\Contracts\TableInterface $source, mini\Table\OrderDef $orders): mini\Table\Contracts\TableInterface

Parameters

Name Type Default Description
$source mini\Table\Contracts\TableInterface required Documentation missing
$orders mini\Table\OrderDef optional Documentation missing

Returns

mini\Table\Contracts\TableInterface

Documentation

Create sorted view of a table, optimizing where possible

Returns source directly if it can handle the ordering natively. Strips any existing SortedTable wrapper before wrapping.

Source

src/Table/Wrappers/SortedTable.php:34-53