src/Utilities/Repository.php
private static function isSortable($item)
    {
        return is_array($item)
            ||
            (
                is_object($item)
                &&
                Reflection::hasMethod($item, 'getPosition')
                &&
                Reflection::hasMethod($item, 'setPosition')
            );
    }
private static function isSortable($item)
    {
        return is_array($item)
            ||
            (
                is_object($item)
                &&
                Reflection::hasMethod($item, 'getPosition')
                &&
                Reflection::hasMethod($item, 'setPosition')
            );
    }
private static function isSortable ( $ item ) { return is_array ( $ item ) || ( is_object ( $ item ) && Reflection :: hasMethod ( $ item , 'getPosition' ) && Reflection :: hasMethod ( $ item , 'setPosition' ) ) ; }
Returns information if given item is sortable

Sortable means it's an:
- array
or
- object and has getPosition() and setPosition()

@param mixed $item An item to verify (object who has "getPosition()" and "setPosition()" methods or an array)
@return bool
Returns information if given item is sortable