APF_TaxonomyField::_replyToSortByCustomOptionValue PHP Method

_replyToSortByCustomOptionValue() public method

public _replyToSortByCustomOptionValue ( $oTermA, $oTermB )
    public function _replyToSortByCustomOptionValue($oTermA, $oTermB)
    {
        $_sClassName = get_class($this);
        // the instantiated class name is the option key by default.
        $_sTextFieldA = AdminPageFramework::getOption($_sClassName, array($oTermA->term_id, 'text_field'));
        $_sTextFieldB = AdminPageFramework::getOption($_sClassName, array($oTermB->term_id, 'text_field'));
        return isset($_GET['order']) && 'asc' == $_GET['order'] ? strnatcmp($_sTextFieldA, $_sTextFieldB) : strnatcmp($_sTextFieldB, $_sTextFieldA);
    }