public function orderBy(array $orderings) : self
    {
        $this->orderings = array_map(
            static function (string $ordering) : string {
                return strtoupper($ordering) === Criteria::ASC ? Criteria::ASC : Criteria::DESC;
            },
            $orderings
        );

        return $this;
    }
public function orderBy(array $orderings) : self
    {
        $this->orderings = array_map(
            static function (string $ordering) : string {
                return strtoupper($ordering) === Criteria::ASC ? Criteria::ASC : Criteria::DESC;
            },
            $orderings
        );

        return $this;
    }
public function orderBy ( array $ orderings ) : self { $ this -> orderings = array_map ( static function ( string $ ordering ) : string { return strtoupper ( $ ordering ) === Criteria :: ASC ? Criteria :: ASC : Criteria :: DESC ; } , $ orderings ) ; return $ this ; }
Sets the ordering of the result of this Criteria.

Keys are field and values are the order, being either ASC or DESC.

@see Criteria::ASC
@see Criteria::DESC

@param array<string, string> $orderings

@return Criteria
Sets the ordering of the result of this Criteria .