lib/AdobeMarketingCloud/OptionParser.php
protected function compareFlags($a, $b)
    {
        $lena = strlen($a);
        $lenb = strlen($b);

        if ($lena == $lenb) {
            # returning -1 here will keep strings of the same length in the
            # same order they originally were in
            return -1;
        }

        return $lena > $lenb ? 1 : -1;
    }
protected function compareFlags($a, $b)
    {
        $lena = strlen($a);
        $lenb = strlen($b);

        if ($lena == $lenb) {
            # returning -1 here will keep strings of the same length in the
            # same order they originally were in
            return -1;
        }

        return $lena > $lenb ? 1 : -1;
    }
Used as a callback function for {@link usort()} when comparing two
flags. Flags are compared for length. If the two flags being compared are
of equal length, the flag that appeared first in the specification will
return first.

@param   string
@param   string
@return  int