public function sortedSetOf(): self
    {
        $obj = clone $this;
        usort($obj->_elements,
            function (Element $a, Element $b) {
                $a_der = $a->toDER();
                $b_der = $b->toDER();
                return strcmp($a_der, $b_der);
            });
        return $obj;
    }
public function sortedSetOf(): self
    {
        $obj = clone $this;
        usort($obj->_elements,
            function (Element $a, Element $b) {
                $a_der = $a->toDER();
                $b_der = $b->toDER();
                return strcmp($a_der, $b_der);
            });
        return $obj;
    }
public function sortedSetOf ( ) : self { $ obj = clone $ this ; usort ( $ obj -> _elements , function ( Element $ a , Element $ b ) { $ a_der = $ a -> toDER ( ) ; $ b_der = $ b -> toDER ( ) ; return strcmp ( $ a_der , $ b_der ) ; } ) ; return $ obj ; }
Sort by encoding ascending order.
Used for DER encoding of SET OF type.

@return self
Sort by encoding ascending order . Used for DER encoding of SET OF type .