SortKeys
class SortKeys extends ArrayMutator (View source)
Sorts the keys of an array.
Supports built-in PHP sorting flags. See https://www.php.net/manual/en/function.sort.php for more information.
Methods
                    __construct(SortDirection $direction = SortDirection::Asc, int $flags = SORT_REGULAR)
        
                                            
                
            No description
                    static SortKeys
                
                
                    make(SortDirection $direction = SortDirection::Asc, int $flags = SORT_REGULAR)
        
                                            
                
            No description
                    array
                
                
                    mutateArray(array $array)
        
                                            
                
            No description
Details
        
                            
    __construct(SortDirection $direction = SortDirection::Asc, int $flags = SORT_REGULAR)
        
    
    No description
        
                static            SortKeys
    asc(int $flags = SORT_REGULAR)
        
    
    Sorts the keys of an array in ascending order.
        
                static            SortKeys
    desc(int $flags = SORT_REGULAR)
        
    
    Sorts the keys of an array in descending order.
        
                static            SortKeys
    make(SortDirection $direction = SortDirection::Asc, int $flags = SORT_REGULAR)
        
    
    No description
        
                            mixed
    mutate(mixed $value)
        
    
    Mutate the input value.
        
                    protected        array
    mutateArray(array $array)
        
    
    No description