Swat/SwatHtmlHeadEntrySetDisplayer.php
protected function compareTypes($a, $b)
    {
        // compare entry type order
        $type_order = $this->getTypeOrder();

        if (!array_key_exists($a, $type_order)) {
            $a = '__unknown__';
        }

        if (!array_key_exists($b, $type_order)) {
            $b = '__unknown__';
        }

        if ($type_order[$a] > $type_order[$b]) {
            return 1;
        }

        if ($type_order[$a] < $type_order[$b]) {
            return -1;
        }

        return 0;
    }
protected function compareTypes($a, $b)
    {
        // compare entry type order
        $type_order = $this->getTypeOrder();

        if (!array_key_exists($a, $type_order)) {
            $a = '__unknown__';
        }

        if (!array_key_exists($b, $type_order)) {
            $b = '__unknown__';
        }

        if ($type_order[$a] > $type_order[$b]) {
            return 1;
        }

        if ($type_order[$a] < $type_order[$b]) {
            return -1;
        }

        return 0;
    }
protected function compareTypes ( $ a , $ b ) { // compare entry type order $ type_order = $ this -> getTypeOrder ( ) ; if ( ! array_key_exists ( $ a , $ type_order ) ) { $ a = '__unknown__' ; } if ( ! array_key_exists ( $ b , $ type_order ) ) { $ b = '__unknown__' ; } if ( $ type_order [ $ a ] > $ type_order [ $ b ] ) { return 1 ; } if ( $ type_order [ $ a ] < $ type_order [ $ b ] ) { return - 1 ; } return 0 ; }
Compares two HTML head entry types

@param string $a left side of comparison.
@param string $b right side of comparison.

@return integer a tri-value where -1 means the left side is less than
the right side, 1 means the left side is greater than
the right side and 0 means the left side and right
side are equivalent.
Compares two HTML head entry types